@@ -120,7 +120,8 @@ import { mapGetters } from 'vuex'
export default {
computed: {
...mapGetters({
- authUser: 'auth/authUser'
+ authUser: 'auth/authUser',
+ isAuthenticated: 'auth/isAuthenticated'
}),
userInitials () {
let initials = null
diff --git a/frontend/src/components/tools/CreationForm.vue b/frontend/src/components/tools/CreationForm.vue
index b57963216..ae84d0ed7 100644
--- a/frontend/src/components/tools/CreationForm.vue
+++ b/frontend/src/components/tools/CreationForm.vue
@@ -57,8 +57,9 @@
Confirm and create
@@ -89,12 +90,14 @@ export default {
},
data () {
return {
- currentStep: 1
+ currentStep: 1,
+ working: false
}
},
methods: {
resetForm () {
this.currentStep = 1
+ this.working = false
this.steps.forEach((item, index) => {
const observer = this.formObserverGetter(index + 1)
if (observer !== undefined) {
@@ -139,6 +142,10 @@ export default {
}
}
this.currentStep = next
+ },
+ create () {
+ this.working = true
+ this.$emit('create')
}
}
}
diff --git a/frontend/src/store/modules/domains.js b/frontend/src/store/modules/domains.js
index 80c70c56b..b5d0df93b 100644
--- a/frontend/src/store/modules/domains.js
+++ b/frontend/src/store/modules/domains.js
@@ -16,6 +16,7 @@ const state = {
// getters
const getters = {
domains: state => state.domains,
+ domainsLoaded: state => state.domainsLoaded,
getDomainByPk: state => pk => {
for (const domain of state.domains) {
if (domain.pk === parseInt(pk, 10)) {