@@ -58,14 +61,14 @@
-
+
{{ group.name }}
@@ -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 +193,6 @@ export default {
return that.getConfig(config.externalConfig);
}
return config;
- })
- .catch((error) => {
- return this.handleErrors("â ï¸ Error loading configuration", error);
});
});
},
@@ -224,6 +244,11 @@ export default {
},
};
},
+ createStylesheet: function (css) {
+ let style = document.createElement("style");
+ style.appendChild(document.createTextNode(css));
+ document.head.appendChild(style);
+ },
},
};