fix(toolbar): make the always-on-top button opt-in
This commit is contained in:
10 files changed
+645
-6
No files matched your search
@@ -270,6 +270,7 @@ import {
|
||||
resolveSettingsSearchEntries,
|
||||
searchSettings,
|
||||
toolbarVisibilityItemLabel,
|
||||
visibleToolbarVisibilityItems,
|
||||
type SettingsCategory,
|
||||
type SettingsSearchEntry,
|
||||
type ToolbarVisibilityItem,
|
||||
@@ -824,7 +825,8 @@ const editExportRowLimit = ref(settingsStore.editorSettings.exportRowLimit);
|
||||
const editQueryExportKeysetOptimizationEnabled = ref(settingsStore.editorSettings.queryExportKeysetOptimizationEnabled);
|
||||
const editUpdateDownloadSource = ref<UpdateDownloadSource>(settingsStore.editorSettings.updateDownloadSource);
|
||||
const editToolbarItems = ref({ ...settingsStore.editorSettings.toolbarItems });
|
||||
const toolbarVisibilityItems = TOOLBAR_VISIBILITY_ITEMS;
|
||||
// Desktop-only toolbar buttons (always-on-top) can never render in the Web build, so their switches stay out of the Web settings dialog.
|
||||
const toolbarVisibilityItems = computed(() => visibleToolbarVisibilityItems(TOOLBAR_VISIBILITY_ITEMS, isWeb));
|
||||
function getToolbarVisibilityItemLabel(item: ToolbarVisibilityItem): string {
|
||||
return toolbarVisibilityItemLabel(item, t);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user