From 17c752811f23217d30cae5f6cef310dca752a5ee 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 Co-authored-by: tamaina --- .../notification-setting-window.vue | 129 ++++++++---------- 1 file changed, 58 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..bf0a148f5 100644 --- a/packages/client/src/components/notification-setting-window.vue +++ b/packages/client/src/components/notification-setting-window.vue @@ -6,95 +6,82 @@ :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.${ntype}`) }}
-