diff --git a/ui/public/i18n/en/translation.json b/ui/public/i18n/en/translation.json
index da69ecf..87bacb4 100644
--- a/ui/public/i18n/en/translation.json
+++ b/ui/public/i18n/en/translation.json
@@ -34,6 +34,7 @@
"admin_email": "Administrator email address",
"admin_full_name": "Administrator full name",
"wiki_fqdn": "Wiki FQDN",
+ "host_pattern": "Must be a valid fully qualified domain name",
"show_password": "Show password",
"hide_password": "Hide password",
"save": "Save",
@@ -43,6 +44,9 @@
"disabled": "Disabled",
"instance_configuration": "Configure {instance}",
"configuring": "Configuring...",
+ "dokuwiki_note": "Note",
+ "must_be_configured_inside_dokuwiki": "You can configure only Dokuwiki FQDN in this page. To configure other setting go to Dokuwiki webapp",
+ "go_to_dokuwiki": "Go to Dokuwiki",
"email_format": "Invalid email address",
"host_pattern": "Must be a valid fully qualified domain name",
"host_format": "Must be a valid fully qualified domain name"
diff --git a/ui/src/views/Settings.vue b/ui/src/views/Settings.vue
index 14d6652..7b1024e 100644
--- a/ui/src/views/Settings.vue
+++ b/ui/src/views/Settings.vue
@@ -15,6 +15,18 @@
/>
+
@@ -24,7 +36,7 @@
v-model.trim="wikiName"
class="mg-bottom"
:invalid-message="$t(error.wiki_name)"
- :disabled="loading.getConfiguration || loading.configureModule"
+ :disabled="loading.getConfiguration || loading.configureModule || already_set"
ref="wikiName"
>
@@ -33,7 +45,7 @@
v-model.trim="username"
class="mg-bottom"
:invalid-message="$t(error.username)"
- :disabled="loading.getConfiguration || loading.configureModule"
+ :disabled="loading.getConfiguration || loading.configureModule || already_set"
ref="username"
>
@@ -45,7 +57,7 @@
:password-hide-label="$t('settings.hide_password')"
class="mg-bottom"
:invalid-message="$t(error.password)"
- :disabled="loading.getConfiguration || loading.configureModule"
+ :disabled="loading.getConfiguration || loading.configureModule || already_set"
ref="password"
>
@@ -55,7 +67,7 @@
v-model.trim="email"
class="mg-bottom"
:invalid-message="$t(error.email)"
- :disabled="loading.getConfiguration || loading.configureModule"
+ :disabled="loading.getConfiguration || loading.configureModule || already_set"
ref="email"
>
@@ -64,7 +76,7 @@
v-model.trim="userFullName"
class="mg-bottom"
:invalid-message="$t(error.user_full_name)"
- :disabled="loading.getConfiguration || loading.configureModule"
+ :disabled="loading.getConfiguration || loading.configureModule || already_set"
ref="userFullName"
>
@@ -152,6 +164,7 @@ export default {
page: "settings",
},
urlCheckInterval: null,
+ already_set: false,
wikiName: "",
username: "",
password: "",
@@ -195,6 +208,9 @@ export default {
next();
},
methods: {
+ goToDokuwikiWebapp() {
+ window.open(`https://${this.host}`, "_blank");
+ },
async getConfiguration() {
this.loading.getConfiguration = true;
this.error.getConfiguration = "";
@@ -248,6 +264,17 @@ export default {
this.isLetsEncryptEnabled = config.lets_encrypt;
this.isHttpToHttpsEnabled = config.http2https;
this.loading.getConfiguration = false;
+ // set already_set to true if the configuration is not empty
+ if (
+ this.wikiName &&
+ this.username &&
+ this.password &&
+ this.userFullName &&
+ this.email
+ ) {
+ this.already_set = true;
+ }
+
this.focusElement("wikiName");
},
validateConfigureModule() {