X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FApp.vue;h=03760fdd3190119397bec6d48532373f06466afd;hb=83665e4f48e8db29d74a2e84b8befb6076c08665;hp=440ffa088e5b5e4b70248b973b931d8b574d0e3c;hpb=1a42e30a1752be5ab0fba5b224fad5686f12499e;p=github%2Fbastienwirtz%2Fhomer.git diff --git a/src/App.vue b/src/App.vue index 440ffa0..03760fd 100644 --- a/src/App.vue +++ b/src/App.vue @@ -49,7 +49,10 @@
- +
@@ -58,14 +61,14 @@
@@ -76,12 +79,12 @@ class="columns is-multiline layout-vertical" >

- + {{ group.name }}

{ + if (response.redirected) { + // This allows to work with authentication proxies. + window.location.href = response.url; + return; + } if (!response.ok) { - throw Error(response.statusText); + throw Error(`${response.statusText}: ${response.body}`); } const that = this; @@ -170,9 +191,6 @@ export default { return that.getConfig(config.externalConfig); } return config; - }) - .catch((error) => { - return this.handleErrors("⚠️ Error loading configuration", error); }); }); }, @@ -224,6 +242,11 @@ export default { }, }; }, + createStylesheet: function(css) { + let style = document.createElement('style'); + style.appendChild(document.createTextNode(css)); + document.head.appendChild(style); + }, }, };