diff --git a/apps/dav/src/components/ExampleContactSettings.vue b/apps/dav/src/components/ExampleContactSettings.vue index ef0646a5320..a5083628efc 100644 --- a/apps/dav/src/components/ExampleContactSettings.vue +++ b/apps/dav/src/components/ExampleContactSettings.vue @@ -98,8 +98,8 @@ export default { }, { label: this.$t('dav', 'Import'), - type: 'primary', icon: IconCheck, + variant: 'primary', callback: () => { this.clickImportInput() }, }, ], diff --git a/apps/files/src/actions/moveOrCopyAction.ts b/apps/files/src/actions/moveOrCopyAction.ts index 62a7f93227b..4fd1b4082eb 100644 --- a/apps/files/src/actions/moveOrCopyAction.ts +++ b/apps/files/src/actions/moveOrCopyAction.ts @@ -239,8 +239,8 @@ async function openFilePickerForAction( if (action === MoveCopyAction.COPY || action === MoveCopyAction.MOVE_OR_COPY) { buttons.push({ - label: target ? t('files', 'Copy to {target}', { target }, undefined, { escape: false, sanitize: false }) : t('files', 'Copy'), - type: 'primary', + label: target ? t('files', 'Copy to {target}', { target }, { escape: false, sanitize: false }) : t('files', 'Copy'), + variant: 'primary', icon: CopyIconSvg, disabled: selection.some((node) => (node.permissions & Permission.CREATE) === 0), async callback(destination: Node[]) { @@ -271,7 +271,7 @@ async function openFilePickerForAction( if (action === MoveCopyAction.MOVE || action === MoveCopyAction.MOVE_OR_COPY) { buttons.push({ label: target ? t('files', 'Move to {target}', { target }, undefined, { escape: false, sanitize: false }) : t('files', 'Move'), - type: action === MoveCopyAction.MOVE ? 'primary' : 'secondary', + variant: action === MoveCopyAction.MOVE ? 'primary' : 'secondary', icon: FolderMoveSvg, async callback(destination: Node[]) { resolve({ diff --git a/apps/files/src/actions/openLocallyAction.ts b/apps/files/src/actions/openLocallyAction.ts index c0cceb2c55b..58dc518c6c0 100644 --- a/apps/files/src/actions/openLocallyAction.ts +++ b/apps/files/src/actions/openLocallyAction.ts @@ -98,7 +98,7 @@ async function confirmLocalEditDialog(): Promise<'online' | 'local' | false> { .setButtons([ { label: t('files', 'Retry and close'), - type: 'secondary', + variant: 'secondary', callback: () => { result = 'local' }, @@ -106,7 +106,7 @@ async function confirmLocalEditDialog(): Promise<'online' | 'local' | false> { { label: t('files', 'Open online'), icon: IconWeb, - type: 'primary', + variant: 'primary', callback: () => { result = 'online' }, diff --git a/apps/files/src/views/DialogConfirmFileExtension.vue b/apps/files/src/views/DialogConfirmFileExtension.vue index 9ec8290843b..50a3095a173 100644 --- a/apps/files/src/views/DialogConfirmFileExtension.vue +++ b/apps/files/src/views/DialogConfirmFileExtension.vue @@ -29,13 +29,13 @@ const dontShowAgain = computed({ set: (value: boolean) => userConfigStore.update('show_dialog_file_extension', !value), }) -const buttons = computed(() => [ +const buttons = computed(() => [ { label: props.oldExtension ? t('files', 'Keep {old}', { old: props.oldExtension }) : t('files', 'Keep without extension'), icon: svgIconCancel, - type: 'secondary', + variant: 'secondary', callback: () => closeDialog(false), }, { @@ -43,10 +43,10 @@ const buttons = computed(() => [ ? t('files', 'Use {new}', { new: props.newExtension }) : t('files', 'Remove extension'), icon: svgIconCheck, - type: 'primary', + variant: 'primary', callback: () => closeDialog(true), }, -]) +] satisfies IDialogButton[]) /** Open state of the dialog */ const open = ref(true) diff --git a/apps/files/src/views/ReferenceFileWidget.vue b/apps/files/src/views/ReferenceFileWidget.vue index 963867034c9..f1091c7b3a6 100644 --- a/apps/files/src/views/ReferenceFileWidget.vue +++ b/apps/files/src/views/ReferenceFileWidget.vue @@ -240,7 +240,7 @@ export default defineComponent({ window.open(generateFileUrl(node.fileid!)) } }, - type: 'primary', + variant: 'primary', }) .disableNavigation() .startAt(this.richObject.path) diff --git a/apps/files_external/src/views/CredentialsDialog.vue b/apps/files_external/src/views/CredentialsDialog.vue index 75189eb04da..7376682e350 100644 --- a/apps/files_external/src/views/CredentialsDialog.vue +++ b/apps/files_external/src/views/CredentialsDialog.vue @@ -80,8 +80,8 @@ export default defineComponent({ dialogButtons() { return [{ label: t('files_external', 'Confirm'), - type: 'primary', - nativeType: 'submit', + type: 'submit', + variant: 'primary', }] }, }, diff --git a/apps/files_versions/src/components/VersionLabelDialog.vue b/apps/files_versions/src/components/VersionLabelDialog.vue index 4aaa5c1fb97..999c405a3f4 100644 --- a/apps/files_versions/src/components/VersionLabelDialog.vue +++ b/apps/files_versions/src/components/VersionLabelDialog.vue @@ -71,8 +71,8 @@ export default defineComponent({ // If there is already a label set, offer to remove the version label buttons.push({ label: t('files_versions', 'Remove version name'), - type: 'error', - nativeType: 'reset', + type: 'reset', + variant: 'error', callback: () => { this.setVersionLabel('') }, }) } @@ -80,9 +80,9 @@ export default defineComponent({ ...buttons, { label: t('files_versions', 'Save version name'), - type: 'primary', - nativeType: 'submit', icon: svgCheck, + type: 'submit', + variant: 'primary', }, ] }, diff --git a/apps/theming/src/components/BackgroundSettings.vue b/apps/theming/src/components/BackgroundSettings.vue index 7a8af5add27..344576a6711 100644 --- a/apps/theming/src/components/BackgroundSettings.vue +++ b/apps/theming/src/components/BackgroundSettings.vue @@ -251,7 +251,7 @@ export default { callback: (nodes) => { this.applyFile(nodes[0]?.path) }, - type: 'primary', + variant: 'primary', }) .build() picker.pick() diff --git a/apps/updatenotification/src/components/AppChangelogDialog.vue b/apps/updatenotification/src/components/AppChangelogDialog.vue index 538a2c5112b..214fc5de1d5 100644 --- a/apps/updatenotification/src/components/AppChangelogDialog.vue +++ b/apps/updatenotification/src/components/AppChangelogDialog.vue @@ -55,7 +55,7 @@ const dialogButtons = [ }, { label: t('updatenotification', 'Get started'), - type: 'primary', + variant: 'primary', callback: () => { emit('dismiss') emit('update:open', false)