From 668181fb44c56af49fa3327961be54d000d77ef0 Mon Sep 17 00:00:00 2001 From: Francis Dinh Date: Sat, 10 Sep 2022 03:24:31 -0400 Subject: [PATCH] refactor: token-generate-window.vue to composition api --- .../src/components/token-generate-window.vue | 147 +++++++----------- 1 file changed, 60 insertions(+), 87 deletions(-) diff --git a/packages/client/src/components/token-generate-window.vue b/packages/client/src/components/token-generate-window.vue index 6079f77e1..461038389 100644 --- a/packages/client/src/components/token-generate-window.vue +++ b/packages/client/src/components/token-generate-window.vue @@ -6,113 +6,86 @@ :with-ok-button="true" :ok-button-disabled="false" :can-close="false" - @close="$refs.dialog.close()" - @closed="$emit('closed')" + @close="dialog?.close()" + @closed="emit('closed')" @ok="ok()" > - +
{{ information }}
- +
-
{{ $ts.permission }}
- {{ $ts.disableAll }} - {{ $ts.enableAll }} - {{ $t(`_permissions.${kind}`) }} +
{{ i18n.ts.permission }}
+ {{ i18n.ts.disableAll }} + {{ i18n.ts.enableAll }} + {{ i18n.t(`_permissions.${kind}`) }}
-