mirror of
https://github.com/mattermost/focalboard.git
synced 2024-12-24 13:43:12 +02:00
Fix themes on differen teams (#4172)
This commit is contained in:
parent
8949c6b13f
commit
7441d01593
@ -262,6 +262,14 @@ export default class Plugin {
|
||||
octoClient.teamId = currentTeamID
|
||||
store.dispatch(initialLoad())
|
||||
}
|
||||
|
||||
if (currentTeamID && currentTeamID !== prevTeamID) {
|
||||
let theme = mmStore.getState().entities.preferences.myPreferences[`theme--${currentTeamID}`]
|
||||
if (!theme) {
|
||||
theme = mmStore.getState().entities.preferences.myPreferences['theme--'] || mmStore.getState().entities.preferences.myPreferences.theme
|
||||
}
|
||||
setMattermostTheme(theme)
|
||||
}
|
||||
})
|
||||
|
||||
let fbPrevTeamID = store.getState().teams.currentId
|
||||
|
Loading…
Reference in New Issue
Block a user