Skip to content

Commit

Permalink
add theme fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
chaitanyapotti committed Jun 26, 2023
1 parent 90dc544 commit 9ff18dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/views/Start/Start.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,12 @@ export default {
const { loginProvider, state, mfaLevel, sessionNamespace, ...rest } = this.$route.query
const stateParams = JSON.parse(safeatob(state))
log.info('logging in with', loginProvider, state, rest, mfaLevel)
const { whiteLabel = { theme: {} }, loginConfig = {}, origin } = stateParams
const { whiteLabel = {}, loginConfig = {}, origin } = stateParams
this.iframeOrigin = origin
this.isCustomVerifier = Object.keys(loginConfig).length > 0
if (!whiteLabel.isActive) {
if (!whiteLabel.theme) whiteLabel.theme = {}
whiteLabel.theme.isDark = this.$vuetify.theme.dark
whiteLabel.theme.colors = { torusBrand1: this.$vuetify.theme.currentTheme.torusBrand1 }
whiteLabel.defaultLanguage = this.$i18n.locale
Expand Down

0 comments on commit 9ff18dd

Please sign in to comment.