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

(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Admin/RecordSources/List.vue (-2 / +11 lines)
Lines 35-40 export default { Link Here
35
        return {
35
        return {
36
            title: this.$__("Record sources"),
36
            title: this.$__("Record sources"),
37
            tableOptions: {
37
            tableOptions: {
38
                options: { embed: "usage_count" },
38
                columns: [
39
                columns: [
39
                    {
40
                    {
40
                        title: this.$__("ID"),
41
                        title: this.$__("ID"),
Lines 59-65 export default { Link Here
59
                    },
60
                    },
60
                ],
61
                ],
61
                actions: {
62
                actions: {
62
                    "-1": ["edit", "delete"],
63
                    "-1": [
64
                        "edit",
65
                        {
66
                            delete: {
67
                                text: this.$__("Delete"),
68
                                icon: "fa fa-trash",
69
                                should_display: row => row.usage_count == 0,
70
                            },
71
                        },
72
                    ],
63
                },
73
                },
64
                url: "/api/v1/record_sources",
74
                url: "/api/v1/record_sources",
65
            },
75
            },
66
- 

Return to bug 37513