Bugzilla – Attachment 149194 Details for
Bug 33417
Create one standard Toolbar component
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33417: Add toolbar imports and options
Bug-33417-Add-toolbar-imports-and-options.patch (text/plain), 6.23 KB, created by
Matt Blenkinsop
on 2023-04-05 12:12:17 UTC
(
hide
)
Description:
Bug 33417: Add toolbar imports and options
Filename:
MIME Type:
Creator:
Matt Blenkinsop
Created:
2023-04-05 12:12:17 UTC
Size:
6.23 KB
patch
obsolete
>From 361e0c29fa1c067b95d7259b595979aefa5ed915 Mon Sep 17 00:00:00 2001 >From: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com> >Date: Wed, 5 Apr 2023 12:04:20 +0000 >Subject: [PATCH] Bug 33417: Add toolbar imports and options > >This commit amends the required files to import the toolbar and add the >correct options > >Test plan as above >--- > .../prog/js/vue/components/ERM/AgreementsList.vue | 10 ++++++++-- > .../components/ERM/EHoldingsLocalPackagesList.vue | 10 ++++++++-- > .../components/ERM/EHoldingsLocalTitlesList.vue | 14 ++++++++++++-- > .../prog/js/vue/components/ERM/LicensesList.vue | 10 ++++++++-- > 4 files changed, 36 insertions(+), 8 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsList.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsList.vue >index 1e3fe9c709..5fee4862f1 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsList.vue >+++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsList.vue >@@ -1,7 +1,7 @@ > <template> > <div v-if="!initialized">{{ $__("Loading") }}</div> > <div v-else id="agreements_list"> >- <Toolbar v-if="before_route_entered" /> >+ <Toolbar v-if="before_route_entered" :options="this.toolbar_options" /> > <fieldset v-if="agreement_count > 0" class="filters"> > <label for="expired_filter">{{ $__("Filter by expired") }}:</label> > <input >@@ -43,7 +43,7 @@ > > <script> > import flatPickr from "vue-flatpickr-component" >-import Toolbar from "./AgreementsToolbar.vue" >+import Toolbar from "../Toolbar.vue" > import { inject, createVNode, render } from "vue" > import { APIClient } from "../../fetch/api-client.js" > import { storeToRefs } from "pinia" >@@ -85,6 +85,12 @@ export default { > }, > before_route_entered: false, > building_table: false, >+ toolbar_options: [ >+ { >+ to: "AgreementsFormAdd", >+ button_title: "New agreement", >+ }, >+ ], > } > }, > beforeRouteEnter(to, from, next) { >diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalPackagesList.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalPackagesList.vue >index bd2c4d7640..cecd22b967 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalPackagesList.vue >+++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalPackagesList.vue >@@ -2,7 +2,7 @@ > <div> > <div v-if="!initialized">{{ $__("Loading") }}</div> > <div v-else id="packages_list"> >- <Toolbar /> >+ <Toolbar :options="this.toolbar_options" /> > <div > v-if="package_count > 0" > id="package_list_result" >@@ -18,7 +18,7 @@ > </template> > > <script> >-import Toolbar from "./EHoldingsLocalPackagesToolbar.vue" >+import Toolbar from "../Toolbar.vue" > import { inject, createVNode, render } from "vue" > import { storeToRefs } from "pinia" > import { APIClient } from "../../fetch/api-client.js" >@@ -54,6 +54,12 @@ export default { > package_name: this.$route.query.package_name || "", > content_type: this.$route.query.content_type || "", > }, >+ toolbar_options: [ >+ { >+ to: "EHoldingsLocalPackagesFormAdd", >+ button_title: "New package", >+ }, >+ ], > } > }, > beforeRouteEnter(to, from, next) { >diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalTitlesList.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalTitlesList.vue >index 25c403fc38..66e3bf8479 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalTitlesList.vue >+++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalTitlesList.vue >@@ -2,7 +2,7 @@ > <div> > <div v-if="!initialized">{{ $__("Loading") }}</div> > <div v-else id="titles_list"> >- <Toolbar /> >+ <Toolbar :options="this.toolbar_options" /> > <div > v-if="title_count > 0" > id="title_list_result" >@@ -18,7 +18,7 @@ > </template> > > <script> >-import Toolbar from "./EHoldingsLocalTitlesToolbar.vue" >+import Toolbar from "../Toolbar.vue" > import { inject, createVNode, render } from "vue" > import { storeToRefs } from "pinia" > import { APIClient } from "../../fetch/api-client.js" >@@ -53,6 +53,16 @@ export default { > publication_type: this.$route.query.publication_type || "", > }, > cannot_search: false, >+ toolbar_options: [ >+ { >+ to: "EHoldingsLocalTitlesFormAdd", >+ button_title: "New title", >+ }, >+ { >+ to: "EHoldingsLocalTitlesFormImport", >+ button_title: "Import from list", >+ }, >+ ], > } > }, > beforeRouteEnter(to, from, next) { >diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/LicensesList.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/LicensesList.vue >index eff87a6758..52886b8eeb 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/LicensesList.vue >+++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/LicensesList.vue >@@ -1,7 +1,7 @@ > <template> > <div v-if="!initialized">{{ $__("Loading") }}</div> > <div v-else id="licenses_list"> >- <Toolbar /> >+ <Toolbar :options="this.toolbar_options" /> > <div v-if="license_count > 0" class="page-section"> > <table :id="table_id"></table> > </div> >@@ -12,7 +12,7 @@ > </template> > > <script> >-import Toolbar from "./LicensesToolbar.vue" >+import Toolbar from "../Toolbar.vue" > import { inject, createVNode, render } from "vue" > import { storeToRefs } from "pinia" > import { APIClient } from "../../fetch/api-client.js" >@@ -44,6 +44,12 @@ export default { > return { > license_count: 0, > initialized: false, >+ toolbar_options: [ >+ { >+ to: "LicensesFormAdd", >+ button_title: "New license", >+ }, >+ ], > } > }, > beforeRouteEnter(to, from, next) { >-- >2.37.1 (Apple Git-137.1)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 33417
:
149193
|
149194
|
149195
|
149212
|
149215
|
149217
|
149229
|
149936
|
149937
|
149938
|
149939
|
149964
|
149965
|
149966
|
149967
|
152244
|
152245
|
152246
|
152247