mirror of
https://github.com/kaythomas0/noisedash.git
synced 2025-11-15 12:47:58 +00:00
Fix accent color picker
This commit is contained in:
@@ -6,7 +6,7 @@ export default {
|
|||||||
changePasswordDialog: false,
|
changePasswordDialog: false,
|
||||||
isPasswordValid: false,
|
isPasswordValid: false,
|
||||||
password: '',
|
password: '',
|
||||||
accentColor: '#607d8b',
|
accentColor: {},
|
||||||
snackbar: false,
|
snackbar: false,
|
||||||
snackbarText: '',
|
snackbarText: '',
|
||||||
rules: {
|
rules: {
|
||||||
@@ -53,8 +53,8 @@ export default {
|
|||||||
this.$http.patch('/users/preferences', {
|
this.$http.patch('/users/preferences', {
|
||||||
preferences: preferences
|
preferences: preferences
|
||||||
})
|
})
|
||||||
this.$vuetify.theme.themes.dark.primary = this.accentColor
|
this.$vuetify.theme.themes.dark.primary = this.accentColor.hex
|
||||||
this.$vuetify.theme.themes.light.primary = this.accentColor
|
this.$vuetify.theme.themes.light.primary = this.accentColor.hex
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -46,8 +46,8 @@ export default {
|
|||||||
.then(response => {
|
.then(response => {
|
||||||
if (response.status === 200) {
|
if (response.status === 200) {
|
||||||
const preferences = response.data.user.preferences
|
const preferences = response.data.user.preferences
|
||||||
this.$vuetify.theme.themes.dark.primary = preferences.accentColor
|
this.$vuetify.theme.themes.dark.primary = preferences.accentColor.hex
|
||||||
this.$vuetify.theme.themes.light.primary = preferences.accentColor
|
this.$vuetify.theme.themes.light.primary = preferences.accentColor.hex
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -490,8 +490,8 @@ export default {
|
|||||||
this.canUpload = response.data.user.canUpload
|
this.canUpload = response.data.user.canUpload
|
||||||
this.$vuetify.theme.dark = response.data.user.darkMode
|
this.$vuetify.theme.dark = response.data.user.darkMode
|
||||||
const preferences = response.data.user.preferences
|
const preferences = response.data.user.preferences
|
||||||
this.$vuetify.theme.themes.dark.primary = preferences.accentColor
|
this.$vuetify.theme.themes.dark.primary = preferences.accentColor.hex
|
||||||
this.$vuetify.theme.themes.light.primary = preferences.accentColor
|
this.$vuetify.theme.themes.light.primary = preferences.accentColor.hex
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user