Skip to content

Commit

Permalink
Change to light and dark mode through conversation
Browse files Browse the repository at this point in the history
  • Loading branch information
jolzee committed Mar 23, 2020
1 parent a778411 commit f036546
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -2034,6 +2034,18 @@ function storeSetup(vuetify) {
}
context.commit("HIDE_CHAT_LOADING");

if (
json.responseData.extraData.theme &&
json.responseData.extraData.theme === "dark"
) {
vuetify.framework.theme.dark = true;
} else if (
json.responseData.extraData.theme &&
json.responseData.extraData.theme === "light"
) {
vuetify.framework.theme.dark = false;
}

if (json.responseData.extraData.offerFeedbackForm) {
const feedbackConfig = JSON.parse(
decodeURIComponent(json.responseData.extraData.offerFeedbackForm)
Expand Down

0 comments on commit f036546

Please sign in to comment.