This commit is contained in:
@@ -192,6 +192,7 @@ export default {
|
|||||||
"Search",
|
"Search",
|
||||||
"TypeToSearchOrAdd",
|
"TypeToSearchOrAdd",
|
||||||
"SelectedItems",
|
"SelectedItems",
|
||||||
|
"AllItemsInList",
|
||||||
"NoData",
|
"NoData",
|
||||||
"ErrorFieldLengthExceeded",
|
"ErrorFieldLengthExceeded",
|
||||||
"ErrorStartDateAfterEndDate",
|
"ErrorStartDateAfterEndDate",
|
||||||
|
|||||||
@@ -69,10 +69,12 @@ export default {
|
|||||||
//do the bulk action
|
//do the bulk action
|
||||||
let vm = this;
|
let vm = this;
|
||||||
let url = "tag-list/";
|
let url = "tag-list/";
|
||||||
let body = vm.selectedItems;
|
|
||||||
|
let body = this.dataListSelection;
|
||||||
|
console.log("body=", body);
|
||||||
switch (vm.action) {
|
switch (vm.action) {
|
||||||
case "Add":
|
case "Add":
|
||||||
url += `bulk-add/${vm.ayaType}/${vm.tag}`;
|
url += `bulk-add/${vm.tag}`;
|
||||||
break;
|
break;
|
||||||
case "Remove":
|
case "Remove":
|
||||||
url += `bulk-remove/${vm.ayaType}/${vm.tag}`;
|
url += `bulk-remove/${vm.ayaType}/${vm.tag}`;
|
||||||
@@ -168,7 +170,8 @@ export default {
|
|||||||
},
|
},
|
||||||
selectedItems: {
|
selectedItems: {
|
||||||
type: Array
|
type: Array
|
||||||
}
|
},
|
||||||
|
dataListSelection: Object
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -8,12 +8,13 @@
|
|||||||
>
|
>
|
||||||
<v-card>
|
<v-card>
|
||||||
<v-card-title>{{ $ay.t("Extensions") }}</v-card-title>
|
<v-card-title>{{ $ay.t("Extensions") }}</v-card-title>
|
||||||
<v-card-subtitle class="mt-1" v-bind:class="subTitleClass()"
|
<v-card-subtitle class="mt-1">{{ titleText() }}</v-card-subtitle>
|
||||||
>{{ $ay.t("SelectedItems") }} {{ dataListSelection }}</v-card-subtitle
|
|
||||||
>
|
|
||||||
<v-card-text>
|
<v-card-text>
|
||||||
<v-expansion-panels focusable>
|
<v-expansion-panels focusable>
|
||||||
<ExtensionTags :ayaType="dataListSelection.ObjectType" />
|
<ExtensionTags
|
||||||
|
:dataListSelection="dataListSelection"
|
||||||
|
:ayaType="dataListSelection.ObjectType"
|
||||||
|
/>
|
||||||
</v-expansion-panels>
|
</v-expansion-panels>
|
||||||
</v-card-text>
|
</v-card-text>
|
||||||
<v-card-actions>
|
<v-card-actions>
|
||||||
@@ -42,11 +43,13 @@ export default {
|
|||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
methods: {
|
methods: {
|
||||||
subTitleClass() {
|
titleText() {
|
||||||
// if (this.selectedItems.length < 1) {
|
if (this.dataListSelection.selectedRowIds.length < 1) {
|
||||||
// return "warning--text";
|
return this.$ay.t("AllItemsInList");
|
||||||
// }
|
}
|
||||||
return "primary--text";
|
return `${this.$ay.t("SelectedItems")} ${
|
||||||
|
this.dataListSelection.selectedRowIds.length
|
||||||
|
}`;
|
||||||
},
|
},
|
||||||
open(dls) {
|
open(dls) {
|
||||||
this.dataListSelection = dls;
|
this.dataListSelection = dls;
|
||||||
|
|||||||
Reference in New Issue
Block a user