diff --git a/client/src/components/DialogBox.vue b/client/src/components/DialogBox.vue index d94d084..7847b61 100644 --- a/client/src/components/DialogBox.vue +++ b/client/src/components/DialogBox.vue @@ -37,7 +37,12 @@ const emit = defineEmits(['close']) border-radius: 8px; color: $dialog-box-text-color; z-index: 12; + + @media (max-width: $phone-max-width) { + min-width: unset; + } } + &__header { display: flex; diff --git a/client/src/pages/setup.vue b/client/src/pages/setup.vue index 89240cb..3937e0c 100644 --- a/client/src/pages/setup.vue +++ b/client/src/pages/setup.vue @@ -7,12 +7,17 @@

{{ $t('description-2') }}

- + -
{{ $t('pin') }}
-
{{ authcode }}
-
{{ $t('remember-and-log-in') }}
+
{{ $t('pin') }}
+
{{ authcode }}
+
{{ $t('remember-and-log-in') }}
+
@@ -27,27 +32,28 @@ import useI18n from '@/composables/useI18n' const { $t } = useI18n({ 'create admin user': { en: 'create admin user', de: 'Admin-Benutzer anlegen' }, - 'description-1': { - en: 'Congratulation!', - de: 'Herzlichen Glückwunsch! ' - }, - 'description-2': { - en: 'You\'ve successfully installed Know Your Teammates.', - de: 'Know Your Teammates wurde erfolgreich installiert.' - }, + 'description-1': { en: 'Congratulation!', de: 'Herzlichen Glückwunsch!' }, + 'description-2': { en: 'You\'ve successfully installed Know Your Teammates.', de: 'Know Your Teammates wurde erfolgreich installiert.' }, + 'pin': { en: 'Your pin code is:', de: 'Deine PIN lautet:' }, + 'remember-and-log-in': { en: 'Write it down now.', de: 'Schreibe sie Dir jetzt auf.' }, + 'complete-setup': { en: 'Complete setup', de: 'Setup abschließen' }, }) await useAuth().authenticateAndLoadUserInfo(['setup']) const showAdminAccountCreatedDialog = ref(false) const authcode = ref('000000') -const createAdminAccount = () => { +const openModal = () => { authcode.value = '' for (var i = 0; i < 6; i++) { authcode.value += '' + Math.floor(Math.floor(Math.random() * 10000) / 100) % 10 } showAdminAccountCreatedDialog.value = true } + +const createAdminAccount = () => { + +} \ No newline at end of file