This commit is contained in:
2020-10-23 18:59:51 +00:00
parent 2ec2dbc362
commit ae76a24ec3
3 changed files with 19 additions and 12 deletions

View File

@@ -8,12 +8,13 @@
>
<v-card>
<v-card-title>{{ $ay.t("Extensions") }}</v-card-title>
<v-card-subtitle class="mt-1" v-bind:class="subTitleClass()"
>{{ $ay.t("SelectedItems") }} {{ dataListSelection }}</v-card-subtitle
>
<v-card-subtitle class="mt-1">{{ titleText() }}</v-card-subtitle>
<v-card-text>
<v-expansion-panels focusable>
<ExtensionTags :ayaType="dataListSelection.ObjectType" />
<ExtensionTags
:dataListSelection="dataListSelection"
:ayaType="dataListSelection.ObjectType"
/>
</v-expansion-panels>
</v-card-text>
<v-card-actions>
@@ -42,11 +43,13 @@ export default {
}
}),
methods: {
subTitleClass() {
// if (this.selectedItems.length < 1) {
// return "warning--text";
// }
return "primary--text";
titleText() {
if (this.dataListSelection.selectedRowIds.length < 1) {
return this.$ay.t("AllItemsInList");
}
return `${this.$ay.t("SelectedItems")} ${
this.dataListSelection.selectedRowIds.length
}`;
},
open(dls) {
this.dataListSelection = dls;