mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
refactor: minor cmdCenter changes
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
clearSubPanels();
|
||||
} else {
|
||||
addSubPanel({
|
||||
name: 'commandPanel',
|
||||
name: 'root',
|
||||
component: Root
|
||||
});
|
||||
}
|
||||
|
||||
@@ -156,7 +156,7 @@
|
||||
|
||||
const castOption = (option: IndexedOption) => option as Option;
|
||||
|
||||
$: breadcrumbs = $subPanels.slice(1).map((panel) => panel.name);
|
||||
$: breadcrumbs = $subPanels.filter((panel) => panel.name !== 'root').map((panel) => panel.name);
|
||||
|
||||
const handleCrumbClick = (index: number) => {
|
||||
if (index === breadcrumbs.length - 1) {
|
||||
|
||||
Reference in New Issue
Block a user