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

(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/SIP2/SIP2InstitutionResource.vue (-2 / +2 lines)
Lines 162-168 export default { Link Here
162
            });
162
            });
163
163
164
            if (accounts.length > 0) {
164
            if (accounts.length > 0) {
165
                baseResource.i18n.deleteConfirmationMessage = $__(
165
                baseResource.i18n.deleteConfirmationBody = $__(
166
                    "You're removing institution %s. <br> It has %s associated accounts (%s), which will also be removed. Are you sure?"
166
                    "You're removing institution %s. <br> It has %s associated accounts (%s), which will also be removed. Are you sure?"
167
                ).format(
167
                ).format(
168
                    resource.name,
168
                    resource.name,
Lines 170-176 export default { Link Here
170
                    accounts.map(a => a.login_id).join(", ")
170
                    accounts.map(a => a.login_id).join(", ")
171
                );
171
                );
172
            } else {
172
            } else {
173
                baseResource.i18n.deleteConfirmationMessage = null;
173
                baseResource.i18n.deleteConfirmationBody = null;
174
            }
174
            }
175
        };
175
        };
176
176
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/SkeletonResource.vue (+3 lines)
Lines 88-93 export default { Link Here
88
                deleteConfirmationMessage: $__(
88
                deleteConfirmationMessage: $__(
89
                    "Are you sure you want to remove this skeleton?"
89
                    "Are you sure you want to remove this skeleton?"
90
                ),
90
                ),
91
                deleteConfirmationBody: $__(
92
                    null // "Optional - Dialog content body when deleting a resource. Defaults to resource's nameAttr value"
93
                ),
91
                deleteSuccessMessage: $__("Skeleton %s deleted"),
94
                deleteSuccessMessage: $__("Skeleton %s deleted"),
92
                displayName: $__("Skeleton"),
95
                displayName: $__("Skeleton"),
93
                editLabel: $__("Edit skeleton #%s"),
96
                editLabel: $__("Edit skeleton #%s"),
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/composables/base-resource.js (-2 / +3 lines)
Lines 264-270 export function useBaseResource(resourceConfig) { Link Here
264
            setConfirmationDialog(
264
            setConfirmationDialog(
265
                {
265
                {
266
                    title: i18n.deleteConfirmationMessage,
266
                    title: i18n.deleteConfirmationMessage,
267
                    message: resourceName,
267
                    message: i18n.deleteConfirmationBody
268
                        ? i18n.deleteConfirmationBody
269
                        : resourceName,
268
                    accept_label: $__("Yes, delete"),
270
                    accept_label: $__("Yes, delete"),
269
                    cancel_label: $__("No, do not delete"),
271
                    cancel_label: $__("No, do not delete"),
270
                },
272
                },
271
- 

Return to bug 41178