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 / +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="agreements_list">
3
    <div v-else id="agreements_list">
4
        <Toolbar v-if="before_route_entered" />
4
        <Toolbar v-if="before_route_entered" :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 43-49 Link Here
43
43
44
<script>
44
<script>
45
import flatPickr from "vue-flatpickr-component"
45
import flatPickr from "vue-flatpickr-component"
46
import Toolbar from "./AgreementsToolbar.vue"
46
import Toolbar from "../Toolbar.vue"
47
import { inject, createVNode, render } from "vue"
47
import { inject, createVNode, render } from "vue"
48
import { APIClient } from "../../fetch/api-client.js"
48
import { APIClient } from "../../fetch/api-client.js"
49
import { storeToRefs } from "pinia"
49
import { storeToRefs } from "pinia"
Lines 85-90 export default { Link Here
85
            },
85
            },
86
            before_route_entered: false,
86
            before_route_entered: false,
87
            building_table: false,
87
            building_table: false,
88
            toolbar_options: [
89
                {
90
                    to: "AgreementsFormAdd",
91
                    button_title: "New agreement",
92
                },
93
            ],
88
        }
94
        }
89
    },
95
    },
90
    beforeRouteEnter(to, from, next) {
96
    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 18-24 Link Here
18
</template>
18
</template>
19
19
20
<script>
20
<script>
21
import Toolbar from "./EHoldingsLocalPackagesToolbar.vue"
21
import Toolbar from "../Toolbar.vue"
22
import { inject, createVNode, render } from "vue"
22
import { inject, createVNode, render } 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 54-59 export default { Link Here
54
                package_name: this.$route.query.package_name || "",
54
                package_name: this.$route.query.package_name || "",
55
                content_type: this.$route.query.content_type || "",
55
                content_type: this.$route.query.content_type || "",
56
            },
56
            },
57
            toolbar_options: [
58
                {
59
                    to: "EHoldingsLocalPackagesFormAdd",
60
                    button_title: "New package",
61
                },
62
            ],
57
        }
63
        }
58
    },
64
    },
59
    beforeRouteEnter(to, from, next) {
65
    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 18-24 Link Here
18
</template>
18
</template>
19
19
20
<script>
20
<script>
21
import Toolbar from "./EHoldingsLocalTitlesToolbar.vue"
21
import Toolbar from "../Toolbar.vue"
22
import { inject, createVNode, render } from "vue"
22
import { inject, createVNode, render } 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 53-58 export default { Link Here
53
                publication_type: this.$route.query.publication_type || "",
53
                publication_type: this.$route.query.publication_type || "",
54
            },
54
            },
55
            cannot_search: false,
55
            cannot_search: false,
56
            toolbar_options: [
57
                {
58
                    to: "EHoldingsLocalTitlesFormAdd",
59
                    button_title: "New title",
60
                },
61
                {
62
                    to: "EHoldingsLocalTitlesFormImport",
63
                    button_title: "Import from list",
64
                },
65
            ],
56
        }
66
        }
57
    },
67
    },
58
    beforeRouteEnter(to, from, next) {
68
    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
            <table :id="table_id"></table>
6
            <table :id="table_id"></table>
7
        </div>
7
        </div>
Lines 12-18 Link Here
12
</template>
12
</template>
13
13
14
<script>
14
<script>
15
import Toolbar from "./LicensesToolbar.vue"
15
import Toolbar from "../Toolbar.vue"
16
import { inject, createVNode, render } from "vue"
16
import { inject, createVNode, render } from "vue"
17
import { storeToRefs } from "pinia"
17
import { storeToRefs } from "pinia"
18
import { APIClient } from "../../fetch/api-client.js"
18
import { APIClient } from "../../fetch/api-client.js"
Lines 44-49 export default { Link Here
44
        return {
44
        return {
45
            license_count: 0,
45
            license_count: 0,
46
            initialized: false,
46
            initialized: false,
47
            toolbar_options: [
48
                {
49
                    to: "LicensesFormAdd",
50
                    button_title: "New license",
51
                },
52
            ],
47
        }
53
        }
48
    },
54
    },
49
    beforeRouteEnter(to, from, next) {
55
    beforeRouteEnter(to, from, next) {
50
- 

Return to bug 33417