diff --git a/app/src/views/app/AppInfo.vue b/app/src/views/app/AppInfo.vue
index 3aba2d31..e86cbbc0 100644
--- a/app/src/views/app/AppInfo.vue
+++ b/app/src/views/app/AppInfo.vue
@@ -101,15 +101,23 @@
-
+
-
- {{ $t('app_make_default') }}
-
+
+
+ {{ $t('app_make_default') }}
+
+
+
+
+
+ {{ $t('app_make_not_default') }}
+
+
@@ -250,10 +258,14 @@ export default {
this.app = {
domain: app.settings.domain,
is_webapp: app.is_webapp,
+ is_default: app.is_default,
supports_change_url: app.supports_change_url,
supports_config_panel: app.supports_config_panel,
permissions
}
+ if (this.app.is_webapp) {
+ this.app.is_default = app.is_default
+ }
},
changeLabel (permName, data) {
@@ -277,12 +289,12 @@ export default {
).then(this.$refs.view.fetchQueries)
},
- async setAsDefaultDomain () {
+ async setAsDefaultDomain (event, undo = false) {
const confirmed = await this.$askConfirmation(this.$i18n.t('confirm_app_default'))
if (!confirmed) return
api.put(
- `apps/${this.id}/default`,
+ `apps/${this.id}/default${undo ? '?undo' : ''}`,
{},
{ key: 'apps.set_default', name: this.infos.label, domain: this.app.domain }
).then(this.$refs.view.fetchQueries)