Skip to content

Commit

Permalink
stores: widget-manager: Include fixed (top-right) mini-widget contain…
Browse files Browse the repository at this point in the history
…ers in the current list
  • Loading branch information
rafaellehmkuhl committed Jan 25, 2024
1 parent 719f1b9 commit 0671b95
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/stores/widgetManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,13 @@ export const useWidgetManagerStore = defineStore('widget-manager', () => {
})

const miniWidgetContainersInCurrentView = computed(() => {
const barContainers = currentView.value.miniWidgetContainers
const fixedBarContainers = currentMiniWidgetsProfile.value.containers
const viewBarContainers = currentView.value.miniWidgetContainers
const floatingWidgetContainers = currentView.value.widgets
.filter((w) => w.component === WidgetType.MiniWidgetsBar)
.filter((w) => w.options && w.options.miniWidgetsContainer)
.map((w) => w.options.miniWidgetsContainer)
return [...barContainers, ...floatingWidgetContainers]
return [...fixedBarContainers, ...viewBarContainers, ...floatingWidgetContainers]
})

/**
Expand Down

0 comments on commit 0671b95

Please sign in to comment.