Skip to content

Commit

Permalink
chore(ui): hide delete button from logs listing page (#4563)
Browse files Browse the repository at this point in the history
  • Loading branch information
MilosPaunovic authored Aug 5, 2024
1 parent 0cc8ada commit fc81308
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ui/src/components/logs/LogsWrapper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
</div>
</el-card>

<el-button v-if="logs !== undefined && logs.length > 0" @click="deleteLogs()" class="mb-3 delete-logs-btn">
<el-button v-if="!isLogsListing && logs !== undefined && logs.length > 0" @click="deleteLogs()" class="mb-3 delete-logs-btn">
<TrashCan class="me-2" />
<span>{{ $t("delete logs") }}</span>
</el-button>
Expand Down Expand Up @@ -153,6 +153,9 @@
isFlowEdit() {
return this.$route.name === "flows/update"
},
isLogsListing() {
return this.$route.name === "logs/list"
},
isNamespaceEdit() {
return this.$route.name === "namespaces/update"
},
Expand Down

0 comments on commit fc81308

Please sign in to comment.