diff --git a/packages/nc-gui/components/account/Setup.vue b/packages/nc-gui/components/account/Setup.vue index f348eb8847..18813a3e59 100644 --- a/packages/nc-gui/components/account/Setup.vue +++ b/packages/nc-gui/components/account/Setup.vue @@ -15,11 +15,14 @@ const configs = computed(() => [ key: 'email', description: 'Configure an email account to send system notifications to your organisation’s users.', docsLink: '', - onClick: () => { + buttonClick: () => { // listModalDlg.value = true // openedCategory.value = 'Email' navigateTo(`/account/setup/email${emailConfigured.value ? `/${emailConfigured.value.title}` : ''}`) }, + itemClick: () =>{ + navigateTo(`/account/setup/email`) + }, configured: emailConfigured.value, }, { @@ -27,12 +30,15 @@ const configs = computed(() => [ key: 'storage', description: 'Configure a storage service to store your organisation’s data.', docsLink: '', - onClick: () => { + buttonClick: () => { // listModalDlg.value = true // openedCategory.value = 'Storage' navigateTo(`/account/setup/storage${storageConfigured.value ? `/${storageConfigured.value.title}` : ''}`) }, + itemClick: () =>{ + navigateTo(`/account/setup/storage`) + }, configured: storageConfigured.value, }, { @@ -40,7 +46,7 @@ const configs = computed(() => [ key: 'switchToProd', description: 'Configure a production-ready app database to port from the existing built-in application database.', docsLink: '', - onClick: () => { + buttonClick: () => { // TODO: Implement the logic to switch to production }, isPending: !(appInfo.value as any)?.prodReady, @@ -71,52 +77,38 @@ onMounted(async () => { class="nc-content-max-w flex-1 max-h-[calc(100vh_-_100px)] overflow-y-auto nc-scrollbar-thin flex flex-col items-center gap-6 p-6" >
-
-
- {{ config.title }} - +
+
- + + + + {{ config.title }}
{{ config.description }}
-
-
- - - - {{ config.configured.title }} -
- -
- - Edit -
-
-
-
-
+
Go to docs
- Configure + +
+ + Edit +
+
+ Configure
diff --git a/packages/nc-gui/components/account/setup/List.vue b/packages/nc-gui/components/account/setup/List.vue index 325a3ec5e6..4cbc0b4456 100644 --- a/packages/nc-gui/components/account/setup/List.vue +++ b/packages/nc-gui/components/account/setup/List.vue @@ -73,9 +73,20 @@ const closeResetModal = () => { v-if="app.active" icon="delete" class="text-error min-w-6 h-6 bg-white-500 !hidden !group-hover:!inline cursor-pointer" - @click.stop="showResetPluginModal(app)" /> - + + + + + + +
@@ -84,22 +95,28 @@ const closeResetModal = () => {
-
+
+ Switch to {{ switchingTo && switchingTo.title }} +
+
Reset {{ activePlugin && activePlugin.title }} Configuration
+
- +
-
- {{ $t('general.cancel') }} - {{ $t('general.confirm') }} +
+ {{ $t('general.cancel') }} + + {{ showResetActiveAppMsg ? `${$t('general.reset')} & ${$t('general.switch')}` : $t('general.reset') }} +
@@ -111,7 +128,7 @@ const closeResetModal = () => { @apply p-4 w-950px gap-5 mx-auto my-2 grid grid-cols-3; .item { - @apply text-base w-296px max-w-296px flex gap-6 border-1 border-gray-200 py-3 px-6 rounded-xl items-center cursor-pointer hover:(shadow bg-gray-50); + @apply text-base w-296px max-w-296px flex gap-3 border-1 border-gray-200 py-3 px-6 rounded-xl items-center cursor-pointer hover:(shadow bg-gray-50); .icon { @apply max-w-32px max-h-32px; diff --git a/packages/nc-gui/lang/en.json b/packages/nc-gui/lang/en.json index 602975aaaf..d00c1daa09 100644 --- a/packages/nc-gui/lang/en.json +++ b/packages/nc-gui/lang/en.json @@ -93,6 +93,7 @@ "none": "None" }, "general": { + "switch": "Switch", "on": "On", "onMultiple": "On Multiple", "manual": "Manual",