This commit is contained in:
2020-10-23 15:23:56 +00:00
parent fd5b9b418a
commit a50b60d777
3 changed files with 22 additions and 18 deletions

View File

@@ -9,12 +9,11 @@
<v-card>
<v-card-title>{{ $ay.t("Extensions") }}</v-card-title>
<v-card-subtitle class="mt-1" v-bind:class="subTitleClass()"
>{{ $ay.t("SelectedItems") }}
{{ selectedItems.length }}</v-card-subtitle
>{{ $ay.t("SelectedItems") }} {{ dataListSelection }}</v-card-subtitle
>
<v-card-text>
<v-expansion-panels focusable>
<ExtensionTags :ayaType="ayaType" :selectedItems="selectedItems" />
<ExtensionTags :ayaType="dataListSelection.ObjectType" />
</v-expansion-panels>
</v-card-text>
<v-card-actions>
@@ -34,25 +33,23 @@ export default {
data: () => ({
isVisible: false,
resolve: null,
reject: null
}),
props: {
ayaType: {
type: Number,
default: 0
},
selectedItems: {
type: Array
reject: null,
dataListSelection: {
ObjectType: 0,
selectedRowIds: [],
dataListKey: null,
listView: null
}
},
}),
methods: {
subTitleClass() {
if (this.selectedItems.length < 1) {
return "warning--text";
}
// if (this.selectedItems.length < 1) {
// return "warning--text";
// }
return "primary--text";
},
open() {
open(dls) {
this.dataListSelection = dls;
this.isVisible = true;
return new Promise((resolve, reject) => {
this.resolve = resolve;