Bugzilla – Attachment 148554 Details for
Bug 32932
Re-structure Vue router-links to use "name" instead of urls
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32932: Update ermmain to use router name property
Bug-32932-Update-ermmain-to-use-router-name-proper.patch (text/plain), 4.27 KB, created by
Agustín Moyano
on 2023-03-22 14:13:32 UTC
(
hide
)
Description:
Bug 32932: Update ermmain to use router name property
Filename:
MIME Type:
Creator:
Agustín Moyano
Created:
2023-03-22 14:13:32 UTC
Size:
4.27 KB
patch
obsolete
>From 9308e8a0909caa72388dc43ae8298d298a579848 Mon Sep 17 00:00:00 2001 >From: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com> >Date: Wed, 22 Mar 2023 10:03:28 -0300 >Subject: [PATCH] Bug 32932: Update ermmain to use router name property > >Updating the router links in the homepage as per previous commits >--- > .../prog/js/vue/components/ERM/AgreementsShow.vue | 2 +- > .../prog/js/vue/components/ERM/AgreementsToolbar.vue | 4 +--- > .../intranet-tmpl/prog/js/vue/components/ERM/Main.vue | 10 +++++++--- > 3 files changed, 9 insertions(+), 7 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsShow.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsShow.vue >index 48a7d22dbb..00bb7ec3a8 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsShow.vue >+++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsShow.vue >@@ -410,7 +410,7 @@ export default { > ), > true > ) >- this.$router.push({ name: 'AgreementsList' }) >+ this.$router.push({ name: "AgreementsList" }) > }, > error => {} > ) >diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsToolbar.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsToolbar.vue >index 6837c94150..b61ceec2fc 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsToolbar.vue >+++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsToolbar.vue >@@ -1,8 +1,6 @@ > <template> > <div id="toolbar" class="btn-toolbar"> >- <router-link >- :to="{ name: 'AgreementsFormAdd' }" >- class="btn btn-default" >+ <router-link :to="{ name: 'AgreementsFormAdd' }" class="btn btn-default" > ><font-awesome-icon icon="plus" /> > {{ $__("New agreement") }}</router-link > > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/Main.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/Main.vue >index d658a833e1..c34991bbc7 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/Main.vue >+++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/Main.vue >@@ -26,7 +26,7 @@ > </li> > <li> > <router-link >- to="/cgi-bin/koha/erm/licenses" >+ :to="{ name: 'LicensesList' }" > > > <i class="fa fa-gavel"></i> > {{ $__("Licenses") }}</router-link >@@ -75,7 +75,9 @@ > <ul> > <li> > <router-link >- :to="`/cgi-bin/koha/erm/eholdings/${provider}/packages`" >+ :to="{ >+ name: `EHoldings${provider}PackagesList`, >+ }" > > > <i > class="fa fa-archive" >@@ -87,7 +89,9 @@ > </li> > <li> > <router-link >- :to="`/cgi-bin/koha/erm/eholdings/${provider}/titles`" >+ :to="{ >+ name: `EHoldings${provider}TitlesList`, >+ }" > > > <i > class="fa fa-sort-alpha-asc" >-- >2.25.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 32932
:
146439
|
146442
|
146616
|
146617
|
146618
|
146624
|
146625
|
146965
|
146966
|
146967
|
146968
|
147119
|
147120
|
147121
|
147122
|
148115
|
148551
|
148552
|
148553
|
148554
|
148558
|
148559
|
148560
|
148561
|
149210
|
149707
|
149709
|
149934
|
149935
|
151529
|
152231