diff --git a/dashboard/public/translation/en.json b/dashboard/public/translation/en.json index d553a0804..e70061628 100644 --- a/dashboard/public/translation/en.json +++ b/dashboard/public/translation/en.json @@ -907,12 +907,12 @@ "subscriptionChangeAction": "Manage Subscription", "subscriptionReactivateAction": "Reactivate Subscription", "emailNotVerified": "Email not yet verified", - "resetDialog": { - "title": "Really reset Cloudron ID", - "description": "This will disconnect the Cloudron from the current cloudron.io account." - }, - "resetAction": "Reset Registration", - "account": "Account" + "account": "Account", + "unlinkAction": "Unlink Account", + "unlinkDialog": { + "title": "Unlink Cloudron.io Account", + "description": "This will unlink this Cloudron from the current Cloudron.io Account. It can then be linked with another account." + } }, "timezone": { "title": "System Time Zone", diff --git a/dashboard/public/translation/nl.json b/dashboard/public/translation/nl.json index 7dafb378c..d95b692ea 100644 --- a/dashboard/public/translation/nl.json +++ b/dashboard/public/translation/nl.json @@ -1383,12 +1383,7 @@ "subscriptionReactivateAction": "Abonnement heractiveren", "title": "Cloudron.io Account", "description": "Een Cloudron.io account wordt gebruikt voor toegang tot de App Store en om je abonnement te beheren.", - "emailNotVerified": "E-mail is niet geverifieerd", - "resetDialog": { - "title": "Weet je zeker dat je je Cloudron ID wilt resetten", - "description": "Hierdoor wordt deze Cloudron losgekoppeld van het huidige Cloudron.io account." - }, - "resetAction": "Reset Registratie" + "emailNotVerified": "E-mail is niet geverifieerd" }, "timezone": { "title": "Systeem Tijdzone", diff --git a/dashboard/public/translation/pt.json b/dashboard/public/translation/pt.json index 61e6883da..00936a099 100644 --- a/dashboard/public/translation/pt.json +++ b/dashboard/public/translation/pt.json @@ -887,12 +887,7 @@ "cloudronId": "Id. de Cloudron", "subscriptionChangeAction": "Gerir Subscrição", "subscriptionReactivateAction": "Reativar Subscrição", - "emailNotVerified": "E-mail ainda não foi verificado", - "resetDialog": { - "title": "Deseja redefinir a Id. do Cloudron", - "description": "Isto desligará o Cloudron da conta Cloudron.io atual." - }, - "resetAction": "Reiniciar Registo" + "emailNotVerified": "E-mail ainda não foi verificado" }, "updates": { "checkForUpdatesAction": "Procurar por Atualizações", diff --git a/dashboard/public/translation/ru.json b/dashboard/public/translation/ru.json index d01c9cb49..2758ec196 100644 --- a/dashboard/public/translation/ru.json +++ b/dashboard/public/translation/ru.json @@ -1282,12 +1282,7 @@ "subscriptionEndsAt": "Отменена и завершена", "subscriptionChangeAction": "Управление подпиской", "subscriptionReactivateAction": "Реактивировать подписку", - "emailNotVerified": "Электронная почта не подтверждена", - "resetDialog": { - "title": "Полностью сбросить Cloudron ID", - "description": "Это действие отвяжет настоящий аккаунт cloudron.io от данного Cloudron." - }, - "resetAction": "Сбросить регистрацию" + "emailNotVerified": "Электронная почта не подтверждена" }, "timezone": { "title": "Системный часовой пояс", diff --git a/dashboard/public/translation/vi.json b/dashboard/public/translation/vi.json index f3fb96eea..d93915b42 100644 --- a/dashboard/public/translation/vi.json +++ b/dashboard/public/translation/vi.json @@ -1222,12 +1222,7 @@ "setupAction": "Cài đặt tài khoản", "description": "Tài khoản Cloudron.io được dùng để truy cập Cửa hàng App và quản lý gói đăng ký.", "title": "Tài khoản Cloudron.io", - "emailNotVerified": "Địa chỉ email chưa được xác minh", - "resetDialog": { - "title": "Chắc chắn cài đặt lại Cloudron ID", - "description": "Việc này sẽ ngắt kết nối Cloudron khỏi tài khoản cloudron.io hiện tại." - }, - "resetAction": "Cài đặt lại Đăng ký" + "emailNotVerified": "Địa chỉ email chưa được xác minh" }, "title": "Hệ thống" }, diff --git a/dashboard/src/models/AppstoreModel.js b/dashboard/src/models/AppstoreModel.js index 73e696a7b..a4036fd5e 100644 --- a/dashboard/src/models/AppstoreModel.js +++ b/dashboard/src/models/AppstoreModel.js @@ -42,10 +42,10 @@ function create() { if (error || result.status !== 200) return [error || result]; return [null, result.body]; }, - async resetCloudronId() { + async unlinkAccount() { let result; try { - result = await fetcher.post(`${API_ORIGIN}/api/v1/appstore/reset_cloudron_id`, {}, { access_token: accessToken }); + result = await fetcher.post(`${API_ORIGIN}/api/v1/appstore/unlink_account`, {}, { access_token: accessToken }); } catch (e) { return [e]; } diff --git a/dashboard/src/views/CloudronAccountView.vue b/dashboard/src/views/CloudronAccountView.vue index 4aecdb6e1..d3b407769 100644 --- a/dashboard/src/views/CloudronAccountView.vue +++ b/dashboard/src/views/CloudronAccountView.vue @@ -49,10 +49,10 @@ async function refresh() { } const inputDialog = useTemplateRef('inputDialog'); -async function onAskResetCloudron() { +async function onAskUnlinkAccount() { const yes = await inputDialog.value.confirm({ - title: t('settings.appstoreAccount.resetDialog.title'), - message: t('settings.appstoreAccount.resetDialog.description'), + title: t('settings.appstoreAccount.unlinkDialog.title'), + message: t('settings.appstoreAccount.unlinkDialog.description'), confirmStyle: 'danger', confirmLabel: t('main.dialog.yes'), rejectLabel: t('main.dialog.cancel'), @@ -61,13 +61,13 @@ async function onAskResetCloudron() { if (!yes) return; - await onResetCloudron(); + await onUnlinkAccount(); } -async function onResetCloudron() { +async function onUnlinkAccount() { busy.value = true; - const [error] = await appstoreModel.resetCloudronId(); + const [error] = await appstoreModel.unlinkAccount(); if (error) return console.error(error); await refresh(); @@ -129,7 +129,7 @@ onUnmounted(() => { {{ $t('settings.appstoreAccount.subscriptionChangeAction') }} - + @@ -147,7 +147,7 @@ onUnmounted(() => { Unknown Cloudron ID or invalid cloudron.io token.