diff --git a/src/static/app/src/views/newConfiguration.vue b/src/static/app/src/views/newConfiguration.vue index c811b3b..2d149e3 100644 --- a/src/static/app/src/views/newConfiguration.vue +++ b/src/static/app/src/views/newConfiguration.vue @@ -3,9 +3,11 @@ import {parse} from "cidr-tools"; import '@/utilities/wireguard.js' import {WireguardConfigurationsStore} from "@/stores/WireguardConfigurationsStore.js"; import {fetchPost} from "@/utilities/fetch.js"; +import LocaleText from "@/components/text/localeText.vue"; export default { name: "newConfiguration", + components: {LocaleText}, setup(){ const store = WireguardConfigurationsStore() return {store} @@ -48,9 +50,7 @@ export default { if (res.status){ this.success = true await this.store.getConfigurations() - setTimeout(() => { - this.$router.push('/') - }, 1000) + this.$router.push(`/configuration/${this.newConfiguration.ConfigurationName}/peers`) }else{ this.error = true; this.errorMessage = res.message; @@ -131,7 +131,8 @@ export default {