Skip to content

Commit

Permalink
ui fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mattholy committed May 19, 2024
1 parent 9c42a8c commit cc3fb39
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions frontend/mossy-zero/src/ViewSetupServer.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script setup lang="ts">
import { onBeforeUnmount, ref, h } from 'vue'
import { useMessage } from 'naive-ui'
import { NButton, NCard, NForm, NFormItem, NInput, NInputGroup, NInputGroupLabel, NUpload, NSwitch, NUploadDragger, NIcon } from 'naive-ui'
import { NFlex, useMessage } from 'naive-ui'
import { NButton, NCard, NForm, NFormItem, NInput, NInputGroup, NInputGroupLabel, NUpload, NSwitch, NUploadDragger, NIcon, NTag } from 'naive-ui'
import type { FormInst, FormRules, FormItemRule, UploadOnChange, MessageReactive } from 'naive-ui'
import { useDialog } from 'naive-ui'
import { useI18n } from 'vue-i18n'
Expand Down Expand Up @@ -88,11 +88,13 @@
title: t('ui.common_desc.registerFinish'),
content: () => h('div', {}, [
h('p', t('ui.common_desc.save_key')),
h('code', { class: 'text-xl' }, r_key)
h(NFlex, { justify: 'center' }, [
h(NTag, { type: 'info', class: 'font-mono', size: 'large' }, r_key.toString())
])
]),
positiveText: t('ui.common_desc.done'),
onPositiveClick: () => {
window.location.href = '/';
window.location.href = '/'
return true
}
})
Expand Down

0 comments on commit cc3fb39

Please sign in to comment.