This commit is contained in:
@@ -192,6 +192,7 @@ export default {
|
||||
"Search",
|
||||
"TypeToSearchOrAdd",
|
||||
"SelectedItems",
|
||||
"AllItemsInList",
|
||||
"NoData",
|
||||
"ErrorFieldLengthExceeded",
|
||||
"ErrorStartDateAfterEndDate",
|
||||
|
||||
@@ -69,10 +69,12 @@ export default {
|
||||
//do the bulk action
|
||||
let vm = this;
|
||||
let url = "tag-list/";
|
||||
let body = vm.selectedItems;
|
||||
|
||||
let body = this.dataListSelection;
|
||||
console.log("body=", body);
|
||||
switch (vm.action) {
|
||||
case "Add":
|
||||
url += `bulk-add/${vm.ayaType}/${vm.tag}`;
|
||||
url += `bulk-add/${vm.tag}`;
|
||||
break;
|
||||
case "Remove":
|
||||
url += `bulk-remove/${vm.ayaType}/${vm.tag}`;
|
||||
@@ -168,7 +170,8 @@ export default {
|
||||
},
|
||||
selectedItems: {
|
||||
type: Array
|
||||
}
|
||||
},
|
||||
dataListSelection: Object
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user