diff --git a/frontend/src/App.vue b/frontend/src/App.vue index ac93bd90a..3af13a0f5 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -1,9 +1,7 @@ @@ -80,6 +102,7 @@ export default { if (this.createAdmin) { result[3].items.push({ key: this.$gettext('Administrator name'), value: this.domain.domain_admin.username }) result[3].items.push({ + name: 'with_random_password', key: this.$gettext('Random password'), value: this.domain.domain_admin.with_random_password, type: 'yesno' @@ -117,6 +140,11 @@ export default { this.initDomain() }, methods: { + copyPassword () { + navigator.clipboard.writeText(this.domain.domain_admin.password).then(() => { + bus.$emit('notification', { msg: this.$gettext('Password copied to clipboard') }) + }) + }, initDomain () { this.domain = { name: '', @@ -154,6 +182,7 @@ export default { delete data.domain_admin } this.$store.dispatch('domains/createDomain', data).then(resp => { + this.$router.push({ name: 'DomainDetail', params: { id: resp.data.pk } }) bus.$emit('notification', { msg: this.$gettext('Domain created') }) this.close() }) @@ -161,3 +190,9 @@ export default { } } + + diff --git a/frontend/src/components/domains/DomainOptionsForm.vue b/frontend/src/components/domains/DomainOptionsForm.vue index fdc448edb..7129bd4fd 100644 --- a/frontend/src/components/domains/DomainOptionsForm.vue +++ b/frontend/src/components/domains/DomainOptionsForm.vue @@ -23,6 +23,7 @@ :label="'Random password' | translate" :disabled="!createAdmin" :hint="'Generate a random password for the administrator.' | translate" + @change="updatePassword" persistent-hint /> diff --git a/frontend/src/components/logs/LogList.vue b/frontend/src/components/logs/LogList.vue deleted file mode 100644 index 80e946fd4..000000000 --- a/frontend/src/components/logs/LogList.vue +++ /dev/null @@ -1,72 +0,0 @@ - - - diff --git a/frontend/src/components/parameters/ParametersForm.vue b/frontend/src/components/parameters/ParametersForm.vue index 465407196..6b7261e17 100644 --- a/frontend/src/components/parameters/ParametersForm.vue +++ b/frontend/src/components/parameters/ParametersForm.vue @@ -1,22 +1,28 @@