aboutsummaryrefslogtreecommitdiff
path: root/resources/vue/components/CacheAdministration.vue
diff options
context:
space:
mode:
authorPhilipp Schüttlöffel <schuettloeffel@zqs.uni-hannover.de>2024-09-24 10:53:31 +0200
committerPhilipp Schüttlöffel <schuettloeffel@zqs.uni-hannover.de>2024-09-24 10:53:31 +0200
commit4459dd7917f4d1c34f40bb68f0e991e9c3d53e4c (patch)
tree5c07151ae61276d334e88f6309c30d439a85c12e /resources/vue/components/CacheAdministration.vue
parentda0022e5c1abbf9825ae76debaabdff7e8623bb4 (diff)
parent97a188592c679890a25c37ab78463add76a52ff7 (diff)
Merge branch 'main' into issue-3911issue-3911
Diffstat (limited to 'resources/vue/components/CacheAdministration.vue')
-rw-r--r--resources/vue/components/CacheAdministration.vue34
1 files changed, 17 insertions, 17 deletions
diff --git a/resources/vue/components/CacheAdministration.vue b/resources/vue/components/CacheAdministration.vue
index af3d461..5da9568 100644
--- a/resources/vue/components/CacheAdministration.vue
+++ b/resources/vue/components/CacheAdministration.vue
@@ -82,24 +82,24 @@ export default {
* @param event
*/
getCacheConfig (event) {
- fetch(STUDIP.URLHelper.getURL(`dispatch.php/admin/cache/get_config/${this.selectedCacheType}`))
- .then((response) => {
- if (!response.ok) {
- throw response
- }
+ const url = STUDIP.URLHelper.getURL(
+ 'dispatch.php/admin/cache/get_config',
+ {cache: this.selectedCacheType},
+ true
+ );
+ fetch(url).then((response) => {
+ if (!response.ok) {
+ throw response
+ }
- response.json()
- .then((json) => {
- this.configComponent = json.component
- this.configProps = json.props
- }).catch((error) => {
- console.error(error)
- console.error(error.status + ': ', error.statusText)
- })
- }).catch((error) => {
- console.error(error)
- console.error(error.status + ': ', error.statusText)
- })
+ response.json().then((json) => {
+ this.configComponent = json.component
+ this.configProps = json.props
+ });
+ }).catch((error) => {
+ console.error(error)
+ console.error(error.status + ': ', error.statusText)
+ })
},
validateConfig () {
if (this.configComponent == null || this.isValid) {