feat(preferences): got timezone option to work on org and profile level, as well as dashboard

This commit is contained in:
Torkel Ödegaard
2016-04-03 06:05:43 -07:00
parent cab859a0e4
commit b30b78e442
8 changed files with 23 additions and 13 deletions

View File

@@ -2,7 +2,7 @@
import config from 'app/core/config';
import _ from 'lodash';
import coreModule from '../../core/core_module';
import coreModule from 'app/core/core_module';
export class PrefsControlCtrl {
prefs: any;
@@ -42,9 +42,7 @@ export class PrefsControlCtrl {
};
this.backendSrv.put(`/api/${this.mode}/preferences`, cmd).then(() => {
if (this.oldTheme !== cmd.theme) {
window.location.href = config.appSubUrl + this.$location.path();
}
window.location.href = config.appSubUrl + this.$location.path();
});
}