From f116e7f5eaf0ca0aa008b5641ee2e41a2e39d1e6 Mon Sep 17 00:00:00 2001 From: Alireza Ahmadi Date: Sat, 18 Jan 2025 12:28:35 +0100 Subject: [PATCH] option all inbounds for client modal #399 --- frontend/src/layouts/modals/Client.vue | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/frontend/src/layouts/modals/Client.vue b/frontend/src/layouts/modals/Client.vue index d5f951d..b033009 100644 --- a/frontend/src/layouts/modals/Client.vue +++ b/frontend/src/layouts/modals/Client.vue @@ -80,10 +80,14 @@ v-model="clientInbounds" :items="inboundTags" :label="$t('client.inboundTags')" + clearable multiple chips - hide-details - > + hide-details> + + @@ -239,12 +243,15 @@ export default { }, setDate(newDate:number){ this.client.expiry = newDate + }, + setAllInbounds(){ + this.client.inbounds = this.inboundTags.map((i:any) => i.value).sort() } }, computed: { clientInbounds: { - get() { return this.client.inbounds.length>0 ? this.client.inbounds : [] }, - set(v:number[]) { this.client.inbounds = v.length == 0 ? [] : v } + get() { return this.client.inbounds.length>0 ? this.client.inbounds.sort() : [] }, + set(v:number[]) { this.client.inbounds = v.length == 0 ? [] : v.sort() } }, expDate: { get() { return this.client.expiry},