diff --git a/apps/directory/src/App.vue b/apps/directory/src/App.vue index 00c1beac13..762df68877 100644 --- a/apps/directory/src/App.vue +++ b/apps/directory/src/App.vue @@ -83,48 +83,3 @@ export default { }, }; - - diff --git a/apps/molgenis-components/src/components/account/MolgenisSession.vue b/apps/molgenis-components/src/components/account/MolgenisSession.vue index 4cf333f960..868d69e6a8 100644 --- a/apps/molgenis-components/src/components/account/MolgenisSession.vue +++ b/apps/molgenis-components/src/components/account/MolgenisSession.vue @@ -45,6 +45,9 @@ :locales="locales" /> + + {{ session.settings.additionalCss }} + @@ -65,7 +68,7 @@ import { ISetting } from "meta-data-utils"; const { cookies } = useCookies(); const query = `{ _session { email, roles, schemas, token, settings{key,value} }, - _settings (keys: ["menu", "page.", "cssURL", "logoURL", "isOidcEnabled","locales"]){ key, value }, + _settings (keys: ["menu", "page.", "cssURL", "logoURL", "isOidcEnabled","locales", "additionalCss"]){ key, value }, _manifest { ImplementationVersion,SpecificationVersion,DatabaseVersion } }`; const defaultSession = { locale: "en", settings: {} }; diff --git a/apps/settings/src/components/Theme.vue b/apps/settings/src/components/Theme.vue index 208b7cfc18..da01a1e340 100644 --- a/apps/settings/src/components/Theme.vue +++ b/apps/settings/src/components/Theme.vue @@ -15,13 +15,25 @@ /> {{ primaryColor }} + + Save theme

- view theme css + + view theme css + @@ -30,6 +42,7 @@ import { ButtonAction, InputString, + InputText, MessageError, MessageSuccess, Spinner, @@ -41,6 +54,7 @@ import { request } from "graphql-request"; export default { components: { InputString, + InputText, ButtonAction, MessageError, MessageSuccess, @@ -58,6 +72,7 @@ export default { loading: false, graphqlError: null, success: null, + additionalCss: null, }; }, created() { @@ -70,6 +85,7 @@ export default { }, methods: { loadSettings() { + this.additionalCss = this.session?.settings?.additionalCss; if (this.session?.settings?.cssURL) { this.logoURL = this.session.settings.logoURL; const urlParams = new URL( @@ -103,6 +119,11 @@ export default { } else { settingsDrop.push({ key: "logoURL" }); } + if (this.additionalCss) { + settingsAlter.push({ key: "additionalCss", value: this.additionalCss }); + } else { + settingsDrop.push({ key: "additionalCss" }); + } this.$emit("reload"); this.loading = true; this.loading = true;