mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-08-01 12:10:33 +00:00
do complete reload after setting import
This commit is contained in:
parent
59e474fa99
commit
1b326857b2
1 changed files with 3 additions and 10 deletions
|
|
@ -69,18 +69,11 @@
|
|||
let settings = JSON.parse(uploadSettingsTextarea);
|
||||
|
||||
_.forOwn(settings, (val, key) => {
|
||||
$rootScope.r[key] = $localStorage[key] = val;
|
||||
$localStorage[key] = val;
|
||||
});
|
||||
|
||||
// delete projects and current project if there are non yet
|
||||
if (!settings.currentProject) {
|
||||
$localStorage.currentProject = $rootScope.r.currentProject = undefined;
|
||||
}
|
||||
if (!settings.projects) {
|
||||
$localStorage.projects = $rootScope.r.projects = [];
|
||||
}
|
||||
|
||||
SimpleToast('Settings successfully imported');
|
||||
// reload page completely afterwards
|
||||
window.location.reload(true);
|
||||
};
|
||||
|
||||
// jira stuff
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue