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

(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Display/DisplaysResource.vue (-1 / +22 lines)
Lines 77-82 export default { Link Here
77
                    name: "display_id",
77
                    name: "display_id",
78
                    label: $__("ID"),
78
                    label: $__("ID"),
79
                    type: "text",
79
                    type: "text",
80
                    tableColumnDefinition: {
81
                        title: $__("ID"),
82
                        data: "display_id",
83
                        searchable: false,
84
                        orderable: true,
85
                        render: function (data, type, row, meta) {
86
                            return '<a href="/cgi-bin/koha/display/displays/%s">%s</a>'.format(
87
                                data,
88
                                data
89
                            );
90
                        },
91
                    },
80
                    hideIn: ["Form", "Show"],
92
                    hideIn: ["Form", "Show"],
81
                },
93
                },
82
                {
94
                {
Lines 240-245 export default { Link Here
240
                    name: "enabled",
252
                    name: "enabled",
241
                    label: $__("Enabled"),
253
                    label: $__("Enabled"),
242
                    type: "boolean",
254
                    type: "boolean",
255
                    tableColumnDefinition: {
256
                        title: $__("Enabled"),
257
                        data: "enabled",
258
                        searchable: false,
259
                        orderable: true,
260
                        render: function (data, type, row, meta) {
261
                            return data ? _("Yes") : _("No");
262
                        },
263
                    },
243
                    required: true,
264
                    required: true,
244
                },
265
                },
245
                {
266
                {
Lines 480-485 export default { Link Here
480
            }
501
            }
481
502
482
            Object.entries(display).forEach(([key, value]) => {
503
            Object.entries(display).forEach(([key, value]) => {
504
                if (key == "enabled") return;
483
                if (value == "") display[key] = null;
505
                if (value == "") display[key] = null;
484
            });
506
            });
485
507
486
- 

Return to bug 14962