Skip to content

Commit

Permalink
UI: window toolbar: display current workspace position
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksey-hoffman committed Nov 5, 2021
1 parent 2bcb794 commit e67adbe
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/components/WorkspacesMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ Copyright © 2021 - present Aleksey Hoffman. All rights reserved.
size="18px"
>mdi-vector-arrange-below
</v-icon>

<div
class="button--menu__counter"
:style="{color: iconColor}"
>
{{workspaceButtonText}}
</div>
</button>
</template>
<template v-slot:content>
Expand Down Expand Up @@ -74,7 +81,10 @@ export default {
menus: 'menus',
workspaces: 'storageData.workspaces',
shortcuts: 'storageData.settings.shortcuts'
})
}),
workspaceButtonText () {
return this.workspaces.items.find(workspace => workspace.isSelected).id + 1
}
}
}
</script>

0 comments on commit e67adbe

Please sign in to comment.