mirror of
https://github.com/kaythomas0/noisedash.git
synced 2025-11-14 12:18:01 +00:00
Move dark mode toggle to account page
This commit is contained in:
@@ -40,6 +40,11 @@ export default {
|
||||
if (this.$refs.changePasswordForm) {
|
||||
this.$refs.changePasswordForm.reset()
|
||||
}
|
||||
},
|
||||
toggleDarkMode () {
|
||||
this.$http.patch('/users/dark-mode', {
|
||||
darkMode: this.$vuetify.theme.dark
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user