From d5ef68336a18ca90c0885a00f55c7e599a745930 Mon Sep 17 00:00:00 2001 From: Johann150 Date: Sat, 25 Jun 2022 10:14:13 +0200 Subject: [PATCH] refactor: notification setting window composition API (#8860) * refactor: notification setting window composition API * fix lint vue/require-valid-default-prop * fix type --- .../notification-setting-window.vue | 128 ++++++++---------- 1 file changed, 57 insertions(+), 71 deletions(-) diff --git a/packages/client/src/components/notification-setting-window.vue b/packages/client/src/components/notification-setting-window.vue index 64d828394..84550c9da 100644 --- a/packages/client/src/components/notification-setting-window.vue +++ b/packages/client/src/components/notification-setting-window.vue @@ -6,95 +6,81 @@ :with-ok-button="true" :ok-button-disabled="false" @ok="ok()" - @close="$refs.dialog.close()" - @closed="$emit('closed')" + @close="dialog.close()" + @closed="emit('closed')" > - +
- {{ $ts.useGlobalSetting }} - + {{ i18n.ts.useGlobalSetting }} +
- {{ $ts.notificationSettingDesc }} - {{ $ts.disableAll }} - {{ $ts.enableAll }} - {{ $t(`_notification._types.${type}`) }} + {{ i18n.ts.notificationSettingDesc }} + {{ i18n.ts.disableAll }} + {{ i18n.ts.enableAll }} + {{ i18n.t(`_notification._types.${type}`) }}
-