]> git.koha-community.org Git - koha.git/commit
Bug 33289: Add API client class to interact with svc/config/systempreferences
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 21 Mar 2023 08:00:10 +0000 (09:00 +0100)
committerTomas Cohen Arazi <tomascohen@theke.io>
Thu, 13 Apr 2023 14:47:56 +0000 (11:47 -0300)
commit9597b88ed259470f2dc5d0a2be206cad6e0f3605
tree97b22c57628ab5dcb4a6374df952564ce817e4ab
parentf92f967626d3f3d8e1a873a5378f3fdaa0724fac
Bug 33289: Add API client class to interact with svc/config/systempreferences

On bug 30708 we will need to modify sysprefs from the UI (Vue app), it
could be useful for other developments as well and so it is moved on its
own bug report.

Test plan:
It can be tested independently of bug 30708 using the following code:

const client = APIClient.sysprefs
client.sysprefs
    .update(
        "CardnumberLength",
        "42"
    )

Sponsored-by: BULAC - http://www.bulac.fr/
Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/js/vue/fetch/api-client.js
koha-tmpl/intranet-tmpl/prog/js/vue/fetch/system-preferences-api-client.js [new file with mode: 0644]