Skip to content

Commit

Permalink
fix: remove some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
elevatebart authored and mgabelle committed Jan 30, 2025
1 parent 23276bd commit d675d02
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions ui/src/components/namespace/Namespace.vue
Original file line number Diff line number Diff line change
@@ -1,18 +1,6 @@
<template>
<top-nav-bar :title="routeInfo.title" :breadcrumb="routeInfo.breadcrumb">
<template #additional-right>
<ul v-if="$route.params.tab === 'secrets' && canCreateSecret">
<li>
<el-button :icon="FamilyTree" @click="modalInheritedSecretsVisible = true">
{{ $t('secret.inherited') }}
</el-button>
</li>
<li>
<el-button :icon="Plus" type="primary" @click="modalAddSecretVisible = true">
{{ $t('secret.add') }}
</el-button>
</li>
</ul>
<ul v-if="$route.params.tab === 'kv'">
<li>
<el-button :icon="Plus" type="primary" @click="modalAddKvVisible = true">
Expand All @@ -31,12 +19,11 @@
</ul>
</template>
</top-nav-bar>
<tabs :route-name="$route.param && $route.param.id ? 'namespaces/update' : ''" :tabs="tabs" :namespace="$route.params.id" id="namespaces" />
<tabs :route-name="$route.param && $route.param.id ? 'namespaces/update' : ''" :tabs="tabs" :namespace="$route.params.id" />
</template>

<script setup>
import TopNavBar from "../layout/TopNavBar.vue";
import FamilyTree from "vue-material-design-icons/FamilyTree.vue";
import Plus from "vue-material-design-icons/Plus.vue";
</script>

Expand Down

0 comments on commit d675d02

Please sign in to comment.