@@ -, +, @@ to the waiting list --- .../js/vue/components/Preservation/WaitingList.vue | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Preservation/WaitingList.vue +++ a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Preservation/WaitingList.vue @@ -135,13 +135,14 @@ export default { const PreservationStore = inject("PreservationStore") const { config } = PreservationStore - const { setMessage, setConfirmationDialog, loading, loaded } = + const { setMessage, setWarning, setConfirmationDialog, loading, loaded } = inject("mainStore") return { table, config, setMessage, + setWarning, setConfirmationDialog, loading, loaded, @@ -213,12 +214,21 @@ export default { client.waiting_list_items.createAll(items).then( result => { if (result.length) { + if (result.length != items.length ){ + this.setWarning( + this.$__("%s new items added. %s items not found.").format( + result.length, items.length - result.length + ), + true + ) + } else { this.setMessage( this.$__("%s new items added.").format( result.length ), true ) + } this.last_items = result if (this.$refs.table) { this.$refs.table.redraw( @@ -228,7 +238,7 @@ export default { this.getCountWaitingListItems() } } else { - this.setMessage(this.$__("No items added")) + this.setWarning(this.$__("No items added")) } }, error => {} --