diff --git a/ui/src/components/namespace/Namespace.vue b/ui/src/components/namespace/Namespace.vue index 606e18b8cd..3e024e20b6 100644 --- a/ui/src/components/namespace/Namespace.vue +++ b/ui/src/components/namespace/Namespace.vue @@ -60,11 +60,11 @@ ...mapState("auth", ["user"]), ...mapState("namespace", ["dependencies"]), canCreateSecret() { - return this.$route.params.namespace && this.user && - this.user.isAllowed(permission.SECRET, action.CREATE, this.$route.params.namespace); + return this.$route.params.id && this.user && + this.user.isAllowed(permission.SECRET, action.CREATE, this.$route.params.id); }, canCreateKv() { - return this.$route.params.namespace; + return this.$route.params.id; }, routeInfo() { return { @@ -217,12 +217,8 @@ }, methods: { loadItem() { - if (this.$route.params.namespace) { - this.$store - .dispatch( - "namespace/load", - this.$route.params - ) + if (this.$route.params.id) { + this.$store.dispatch("namespace/load",this.$route.params.id) } }, } diff --git a/ui/src/components/namespace/NamespaceDependenciesWrapper.vue b/ui/src/components/namespace/NamespaceDependenciesWrapper.vue index 4a17a2b5dd..e55bd27491 100644 --- a/ui/src/components/namespace/NamespaceDependenciesWrapper.vue +++ b/ui/src/components/namespace/NamespaceDependenciesWrapper.vue @@ -1,5 +1,5 @@