Move dark mode toggle to account page

This commit is contained in:
Kevin Thomas
2022-04-05 21:32:45 -07:00
parent 7127e473b8
commit 7a59000a41
4 changed files with 11 additions and 13 deletions

View File

@@ -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
})
}
}
}