Исправленны ошибки отображения элементов заголовка таблицы

This commit is contained in:
DwCay
2022-10-17 12:20:21 +03:00
parent dc891cafc9
commit c70b0b23db
5 changed files with 6 additions and 12 deletions

View File

@@ -1,6 +1,6 @@
<template lang="pug">
.wrapper.flex.px-5.items-center.gap-x-2
clients-action-button(v-for="data in dataBtn" :key="data.prompt" :img="data.img" :prompt="data.prompt")
clients-action-button(v-for="data in (isSelectedOne?dataBtn:dataBtn.filter((el) => el.prompt !== 'ведение'))" :key="data.prompt" :img="data.img" :prompt="data.prompt")
</template>
<script>
@@ -13,7 +13,7 @@ export default {
name: "ClientsTableHeaderActions",
components: { ClientsActionButton },
props: {
isSelectedOne: Number,
isSelectedOne: Boolean,
},
data() {
return {
@@ -37,11 +37,6 @@ export default {
],
};
},
created() {
if (this.isSelectedOne > 1) {
this.dataBtn = this.dataBtn.filter((el) => el.prompt !== "ведение");
}
},
};
</script>