diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsList.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsList.vue
index 75a1671875..3ebd9400d7 100644
--- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsList.vue
+++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsList.vue
@@ -39,6 +39,7 @@
@show="doShow"
@edit="doEdit"
@delete="doDelete"
+ @select="doSelect"
>
@@ -127,7 +128,16 @@ export default {
},
actions: {
0: ["show"],
- "-1": ["edit", "delete"],
+ "-1": this.embedded
+ ? [
+ {
+ select: {
+ text: this.$__("Select"),
+ icon: "fa fa-check",
+ },
+ },
+ ]
+ : ["edit", "delete"],
},
default_filters: {
"user_roles.user_id": function () {
@@ -192,6 +202,10 @@ export default {
}
)
},
+ doSelect: function (agreement, dt, event) {
+ this.$emit("select-agreement", agreement.agreement_id)
+ this.$emit("close")
+ },
table_url: function () {
let url = "/api/v1/erm/agreements"
if (this.filters.by_expired)
@@ -199,10 +213,6 @@ export default {
"?max_expiration_date=" + this.filters.max_expiration_date
return url
},
- select_agreement: function (agreement_id) {
- this.$emit("select-agreement", agreement_id)
- this.$emit("close")
- },
filter_table: async function () {
if (!embedded) {
let new_route = build_url(