View | Details | Raw Unified | Return to bug 35477
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Preservation/WaitingList.vue (-16 / +23 lines)
Lines 135-142 export default { Link Here
135
        const PreservationStore = inject("PreservationStore")
135
        const PreservationStore = inject("PreservationStore")
136
        const { config } = PreservationStore
136
        const { config } = PreservationStore
137
137
138
        const { setMessage, setWarning, setConfirmationDialog, loading, loaded } =
138
        const {
139
            inject("mainStore")
139
            setMessage,
140
            setWarning,
141
            setConfirmationDialog,
142
            loading,
143
            loaded,
144
        } = inject("mainStore")
140
145
141
        return {
146
        return {
142
            table,
147
            table,
Lines 214-233 export default { Link Here
214
            client.waiting_list_items.createAll(items).then(
219
            client.waiting_list_items.createAll(items).then(
215
                result => {
220
                result => {
216
                    if (result.length) {
221
                    if (result.length) {
217
                        if (result.length != items.length ){
222
                        if (result.length != items.length) {
218
                        this.setWarning(
223
                            this.setWarning(
219
                            this.$__("%s new items added. %s items not found.").format(
224
                                this.$__(
220
                                result.length, items.length - result.length
225
                                    "%s new items added. %s items not found."
221
                            ),
226
                                ).format(
222
                            true
227
                                    result.length,
223
                        )
228
                                    items.length - result.length
229
                                ),
230
                                true
231
                            )
224
                        } else {
232
                        } else {
225
                        this.setMessage(
233
                            this.setMessage(
226
                            this.$__("%s new items added.").format(
234
                                this.$__("%s new items added.").format(
227
                                result.length
235
                                    result.length
228
                            ),
236
                                ),
229
                            true
237
                                true
230
                        )
238
                            )
231
                        }
239
                        }
232
                        this.last_items = result
240
                        this.last_items = result
233
                        if (this.$refs.table) {
241
                        if (this.$refs.table) {
234
- 

Return to bug 35477