[feat]dialog header action tooltip support (#219)

* fix: remove duplicate variables resulting from merging

* feat(dialog): add tooltip support for header buttons
This commit is contained in:
Hayden
2026-02-26 15:23:40 +08:00
committed by GitHub
parent dc1d12649a
commit 33c43085c4
3 changed files with 2 additions and 10 deletions
-10
View File
@@ -92,16 +92,6 @@ onMounted(() => {
const openManagerDialog = () => {
const { cardWidth, gutter, aspect, flat } = config
// choose icon depending on current layout
const layoutIcon = flat.value ? 'pi pi-folder-open' : 'pi pi-th-large'
// determine hidden files setting
const includeHidden =
app.ui?.settings.getSettingValue('ModelManager.Scan.IncludeHiddenFiles') ??
false
const hiddenIcon = includeHidden ? 'pi pi-eye' : 'pi pi-eye-slash'
const hiddenTooltip = includeHidden
? t('hideHiddenFiles')
: t('showHiddenFiles')
const layoutIcon = flat.value ? 'pi pi-th-large' : 'pi pi-folder-open'
+1
View File
@@ -16,6 +16,7 @@
<Button
v-for="action in item.headerButtons"
:key="action.key"
v-tooltip.top="action.tooltip"
severity="secondary"
:text="true"
:rounded="true"
+1
View File
@@ -6,6 +6,7 @@ interface HeaderButton {
key: string
icon: string
command: () => void
tooltip?: string
}
export interface DialogItem {