Bugzilla – Attachment 149542 Details for
Bug 33408
Fetch sysprefs from svc/config/systempreferences
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33408: Add storeToRefs to ERMStore
Bug-33408-Add-storeToRefs-to-ERMStore.patch (text/plain), 2.03 KB, created by
Martin Renvoize (ashimema)
on 2023-04-12 12:44:34 UTC
(
hide
)
Description:
Bug 33408: Add storeToRefs to ERMStore
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2023-04-12 12:44:34 UTC
Size:
2.03 KB
patch
obsolete
>From 16b08ab8d9d1d4489f3d544d28349cc49733b003 Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@ptfs-europe.com> >Date: Wed, 12 Apr 2023 08:36:18 +0000 >Subject: [PATCH] Bug 33408: Add storeToRefs to ERMStore > >It makes it so that any changes to the local property >is also reflected in the store and other components are >made aware of the new value. No need to explicitly >change both local property and store property values. > >Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > .../intranet-tmpl/prog/js/vue/components/ERM/Main.vue | 7 +++---- > 1 file changed, 3 insertions(+), 4 deletions(-) > >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 af0587d375..ded1dae20c 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 >@@ -138,7 +138,7 @@ export default { > > const ERMStore = inject("ERMStore") > >- const { sysprefs, providers } = ERMStore >+ const { sysprefs, providers } = storeToRefs(ERMStore) > > return { > vendorStore, >@@ -214,8 +214,7 @@ export default { > promises.push( > sysprefs_client.sysprefs.get("ERMProviders").then( > providers => { >- this.ERMStore.providers = providers.value.split(",") >- this.providers = this.ERMStore.providers >+ this.providers = providers.value.split(",") > }, > error => {} > ) >@@ -227,7 +226,7 @@ export default { > sysprefs_client.sysprefs > .get("ERMModule") > .then(value => { >- this.ERMStore.sysprefs.ERMModule = value.value >+ this.sysprefs.ERMModule = value.value > if (this.sysprefs.ERMModule != 1) { > return this.setError( > this.$__( >-- >2.40.0
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 33408
:
149131
|
149132
|
149133
|
149134
|
149184
|
149185
|
149186
|
149196
|
149197
|
149198
|
149200
|
149204
|
149205
|
149206
|
149207
|
149208
|
149209
|
149254
|
149438
|
149516
|
149517
|
149518
|
149535
|
149536
|
149537
|
149538
|
149539
|
149540
|
149541
| 149542 |
149543
|
149570