1212 </div >
1313 <div ref =" menuRight" class =" comfyui-menu-right flex-shrink-0" />
1414 <Actionbar />
15+ <CurrentUserButton class =" flex-shrink-0" />
1516 <BottomPanelToggleButton class =" flex-shrink-0" />
1617 <Button
1718 v-tooltip =" { value: $t('menu.hideMenu'), showDelay: 300 }"
2324 @click =" workspaceState.focusMode = true"
2425 @contextmenu =" showNativeSystemMenu"
2526 />
26- <Button
27- v-if =" isAuthenticated"
28- v-tooltip =" { value: $t('userSettings.title'), showDelay: 300 }"
29- class =" flex-shrink-0 user-profile-button"
30- severity =" secondary"
31- text
32- :aria-label =" $t('userSettings.title')"
33- @click =" openUserSettings"
34- >
35- <template #icon >
36- <div
37- class =" w-6 h-6 rounded-full bg-neutral-100 dark:bg-neutral-700 flex items-center justify-center"
38- >
39- <i class =" pi pi-user text-sm" />
40- </div >
41- </template >
42- </Button >
4327 <div
4428 v-show =" menuSetting !== 'Bottom'"
4529 class =" window-actions-spacer flex-shrink-0"
@@ -61,10 +45,9 @@ import { computed, onMounted, provide, ref } from 'vue'
6145import Actionbar from ' @/components/actionbar/ComfyActionbar.vue'
6246import BottomPanelToggleButton from ' @/components/topbar/BottomPanelToggleButton.vue'
6347import CommandMenubar from ' @/components/topbar/CommandMenubar.vue'
48+ import CurrentUserButton from ' @/components/topbar/CurrentUserButton.vue'
6449import WorkflowTabs from ' @/components/topbar/WorkflowTabs.vue'
6550import { app } from ' @/scripts/app'
66- import { useDialogService } from ' @/services/dialogService'
67- import { useFirebaseAuthStore } from ' @/stores/firebaseAuthStore'
6851import { useSettingStore } from ' @/stores/settingStore'
6952import { useWorkspaceStore } from ' @/stores/workspaceStore'
7053import {
@@ -76,10 +59,7 @@ import {
7659
7760const workspaceState = useWorkspaceStore ()
7861const settingStore = useSettingStore ()
79- const authStore = useFirebaseAuthStore ()
80- const dialogService = useDialogService ()
8162
82- const isAuthenticated = computed (() => authStore .isAuthenticated )
8363const workflowTabsPosition = computed (() =>
8464 settingStore .get (' Comfy.Workflow.WorkflowTabsPosition' )
8565)
@@ -89,10 +69,6 @@ const showTopMenu = computed(
8969 () => betaMenuEnabled .value && ! workspaceState .focusMode
9070)
9171
92- const openUserSettings = () => {
93- dialogService .showSettingsDialog (' user' )
94- }
95-
9672const menuRight = ref <HTMLDivElement | null >(null )
9773// Menu-right holds legacy topbar elements attached by custom scripts
9874onMounted (() => {
0 commit comments