mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-09 13:55:01 +02:00
Add Admin role & split settings between appSettings and userPreferences
This commit is contained in:
5
resources/js/app.js
vendored
5
resources/js/app.js
vendored
@ -17,6 +17,7 @@ const app = new Vue({
|
||||
data: {
|
||||
appSettings: window.appSettings,
|
||||
appConfig: window.appConfig,
|
||||
userPreferences: window.userPreferences,
|
||||
isDemoApp: window.isDemoApp,
|
||||
isTestingApp: window.isTestingApp,
|
||||
prefersDarkScheme: window.matchMedia('(prefers-color-scheme: dark)').matches
|
||||
@ -24,8 +25,8 @@ const app = new Vue({
|
||||
|
||||
computed: {
|
||||
showDarkMode: function() {
|
||||
return this.appSettings.theme == 'dark' ||
|
||||
(this.appSettings.theme == 'system' && this.prefersDarkScheme)
|
||||
return this.userPreferences.theme == 'dark' ||
|
||||
(this.userPreferences.theme == 'system' && this.prefersDarkScheme)
|
||||
}
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user