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

(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/LicensesList.vue (-5 / +8 lines)
Lines 38-43 export default { Link Here
38
            table_id,
38
            table_id,
39
            setConfirmationDialog,
39
            setConfirmationDialog,
40
            setMessage,
40
            setMessage,
41
            permissions,
41
        }
42
        }
42
    },
43
    },
43
    data: function () {
44
    data: function () {
Lines 274-284 export default { Link Here
274
                                    ]
275
                                    ]
275
                                )
276
                                )
276
277
277
                                let n = createVNode("span", {}, [
278
                                let n = permissions.licensing.write
278
                                    editButton,
279
                                    ? createVNode("span", {}, [
279
                                    " ",
280
                                          editButton,
280
                                    deleteButton,
281
                                          " ",
281
                                ])
282
                                          deleteButton,
283
                                      ])
284
                                    : createVNode("span", {}, [])
282
                                render(n, e)
285
                                render(n, e)
283
                            }
286
                            }
284
                        )
287
                        )
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/LicensesShow.vue (-1 / +3 lines)
Lines 5-15 Link Here
5
            {{ $__("License #%s").format(license.license_id) }}
5
            {{ $__("License #%s").format(license.license_id) }}
6
            <span class="action_links">
6
            <span class="action_links">
7
                <router-link
7
                <router-link
8
                    v-if="permissions.licensing.write"
8
                    :to="`/cgi-bin/koha/erm/licenses/edit/${license.license_id}`"
9
                    :to="`/cgi-bin/koha/erm/licenses/edit/${license.license_id}`"
9
                    :title="$__('Edit')"
10
                    :title="$__('Edit')"
10
                    ><i class="fa fa-pencil"></i
11
                    ><i class="fa fa-pencil"></i
11
                ></router-link>
12
                ></router-link>
12
                <a @click="delete_license(license.license_id, license.name)"
13
                <a v-if="permissions.licensing.write" @click="delete_license(license.license_id, license.name)"
13
                    ><i class="fa fa-trash"></i
14
                    ><i class="fa fa-trash"></i
14
                ></a>
15
                ></a>
15
            </span>
16
            </span>
Lines 161-166 export default { Link Here
161
            get_lib_from_av,
162
            get_lib_from_av,
162
            setConfirmationDialog,
163
            setConfirmationDialog,
163
            setMessage,
164
            setMessage,
165
            permissions,
164
        }
166
        }
165
    },
167
    },
166
    data() {
168
    data() {
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/LicensesToolbar.vue (-2 / +9 lines)
Lines 1-6 Link Here
1
<template>
1
<template>
2
    <div id="toolbar" class="btn-toolbar">
2
    <div id="toolbar" class="btn-toolbar">
3
        <router-link to="/cgi-bin/koha/erm/licenses/add" class="btn btn-default"
3
        <router-link
4
            v-if="permissions.licensing.write"
5
            to="/cgi-bin/koha/erm/licenses/add"
6
            class="btn btn-default"
4
            ><font-awesome-icon icon="plus" />
7
            ><font-awesome-icon icon="plus" />
5
            {{ $__("New license") }}</router-link
8
            {{ $__("New license") }}</router-link
6
        >
9
        >
Lines 9-14 Link Here
9
12
10
<script>
13
<script>
11
export default {
14
export default {
15
    setup() {
16
        return {
17
            permissions,
18
        }
19
    },
12
    name: "LicensesToolbar",
20
    name: "LicensesToolbar",
13
}
21
}
14
</script>
22
</script>
15
- 

Return to bug 32968