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

(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsList.vue (-2 / +10 lines)
Lines 1-7 Link Here
1
<template>
1
<template>
2
    <div v-if="!initialized">{{ $__("Loading") }}</div>
2
    <div v-if="!initialized">{{ $__("Loading") }}</div>
3
    <div v-else id="agreements_list">
3
    <div v-else id="agreements_list">
4
        <Toolbar v-if="!embedded" />
4
        <Toolbar v-if="!embedded" :options="this.toolbar_options" />
5
        <fieldset v-if="agreement_count > 0" class="filters">
5
        <fieldset v-if="agreement_count > 0" class="filters">
6
            <label for="expired_filter">{{ $__("Filter by expired") }}:</label>
6
            <label for="expired_filter">{{ $__("Filter by expired") }}:</label>
7
            <input
7
            <input
Lines 50-56 Link Here
50
50
51
<script>
51
<script>
52
import flatPickr from "vue-flatpickr-component"
52
import flatPickr from "vue-flatpickr-component"
53
import Toolbar from "./AgreementsToolbar.vue"
53
import Toolbar from "../Toolbar.vue"
54
import { inject, ref, reactive } from "vue"
54
import { inject, ref, reactive } from "vue"
55
import { APIClient } from "../../fetch/api-client.js"
55
import { APIClient } from "../../fetch/api-client.js"
56
import { storeToRefs } from "pinia"
56
import { storeToRefs } from "pinia"
Lines 147-152 export default { Link Here
147
                    },
147
                    },
148
                },
148
                },
149
            },
149
            },
150
            before_route_entered: false,
151
            building_table: false,
152
            toolbar_options: [
153
                {
154
                    to: "AgreementsFormAdd",
155
                    button_title: "New agreement",
156
                },
157
            ],
150
        }
158
        }
151
    },
159
    },
152
    beforeRouteEnter(to, from, next) {
160
    beforeRouteEnter(to, from, next) {
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalPackagesList.vue (-2 / +8 lines)
Lines 2-8 Link Here
2
    <div>
2
    <div>
3
        <div v-if="!initialized">{{ $__("Loading") }}</div>
3
        <div v-if="!initialized">{{ $__("Loading") }}</div>
4
        <div v-else id="packages_list">
4
        <div v-else id="packages_list">
5
            <Toolbar />
5
            <Toolbar :options="this.toolbar_options" />
6
            <div
6
            <div
7
                v-if="package_count > 0"
7
                v-if="package_count > 0"
8
                id="package_list_result"
8
                id="package_list_result"
Lines 24-30 Link Here
24
</template>
24
</template>
25
25
26
<script>
26
<script>
27
import Toolbar from "./EHoldingsLocalPackagesToolbar.vue"
27
import Toolbar from "../Toolbar.vue"
28
import { inject, ref, reactive } from "vue"
28
import { inject, ref, reactive } from "vue"
29
import { storeToRefs } from "pinia"
29
import { storeToRefs } from "pinia"
30
import { APIClient } from "../../fetch/api-client.js"
30
import { APIClient } from "../../fetch/api-client.js"
Lines 98-103 export default { Link Here
98
                    "-1": ["edit", "delete"],
98
                    "-1": ["edit", "delete"],
99
                },
99
                },
100
            },
100
            },
101
            toolbar_options: [
102
                {
103
                    to: "EHoldingsLocalPackagesFormAdd",
104
                    button_title: "New package",
105
                },
106
            ],
101
        }
107
        }
102
    },
108
    },
103
    beforeRouteEnter(to, from, next) {
109
    beforeRouteEnter(to, from, next) {
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalTitlesList.vue (-2 / +12 lines)
Lines 2-8 Link Here
2
    <div>
2
    <div>
3
        <div v-if="!initialized">{{ $__("Loading") }}</div>
3
        <div v-if="!initialized">{{ $__("Loading") }}</div>
4
        <div v-else id="titles_list">
4
        <div v-else id="titles_list">
5
            <Toolbar />
5
            <Toolbar :options="this.toolbar_options" />
6
            <div
6
            <div
7
                v-if="title_count > 0"
7
                v-if="title_count > 0"
8
                id="title_list_result"
8
                id="title_list_result"
Lines 24-30 Link Here
24
</template>
24
</template>
25
25
26
<script>
26
<script>
27
import Toolbar from "./EHoldingsLocalTitlesToolbar.vue"
27
import Toolbar from "../Toolbar.vue"
28
import { inject, ref, reactive } from "vue"
28
import { inject, ref, reactive } from "vue"
29
import { storeToRefs } from "pinia"
29
import { storeToRefs } from "pinia"
30
import { APIClient } from "../../fetch/api-client.js"
30
import { APIClient } from "../../fetch/api-client.js"
Lines 90-95 export default { Link Here
90
                },
90
                },
91
            },
91
            },
92
            cannot_search: false,
92
            cannot_search: false,
93
            toolbar_options: [
94
                {
95
                    to: "EHoldingsLocalTitlesFormAdd",
96
                    button_title: "New title",
97
                },
98
                {
99
                    to: "EHoldingsLocalTitlesFormImport",
100
                    button_title: "Import from list",
101
                },
102
            ],
93
        }
103
        }
94
    },
104
    },
95
    beforeRouteEnter(to, from, next) {
105
    beforeRouteEnter(to, from, next) {
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/LicensesList.vue (-3 / +8 lines)
Lines 1-7 Link Here
1
<template>
1
<template>
2
    <div v-if="!initialized">{{ $__("Loading") }}</div>
2
    <div v-if="!initialized">{{ $__("Loading") }}</div>
3
    <div v-else id="licenses_list">
3
    <div v-else id="licenses_list">
4
        <Toolbar />
4
        <Toolbar :options="this.toolbar_options" />
5
        <div v-if="license_count > 0" class="page-section">
5
        <div v-if="license_count > 0" class="page-section">
6
            <KohaTable
6
            <KohaTable
7
                ref="table"
7
                ref="table"
Lines 18-24 Link Here
18
</template>
18
</template>
19
19
20
<script>
20
<script>
21
import Toolbar from "./LicensesToolbar.vue"
21
import Toolbar from "../Toolbar.vue"
22
import { inject, ref } from "vue"
22
import { inject, ref } from "vue"
23
import { storeToRefs } from "pinia"
23
import { storeToRefs } from "pinia"
24
import { APIClient } from "../../fetch/api-client.js"
24
import { APIClient } from "../../fetch/api-client.js"
Lines 50-55 export default { Link Here
50
        return {
50
        return {
51
            license_count: 0,
51
            license_count: 0,
52
            initialized: false,
52
            initialized: false,
53
            toolbar_options: [
54
                {
55
                    to: "LicensesFormAdd",
56
                    button_title: "New license",
57
                },
58
            ],
53
            tableOptions: {
59
            tableOptions: {
54
                columns: this.getTableColumns(),
60
                columns: this.getTableColumns(),
55
                url: "/api/v1/erm/licenses",
61
                url: "/api/v1/erm/licenses",
56
- 

Return to bug 33417