Skip to content

Commit 80edf54

Browse files
committed
After storage reset, go to project page and reload
This seems to be the best UX in the end.
1 parent 030d59b commit 80edf54

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/angular-app/languageforge/lexicon/settings/configuration/configuration-advanced-options.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ export class AdvancedOptionsConfigurationController implements angular.IControll
2727
async resetLocalStorage() {
2828
await this.editorOfflineCache.deleteAllEntries();
2929
await this.commentsOfflineCache.deleteAllComments();
30-
alert('Browser storage has been reset. Please refresh the page to redownload dictionary entries.');
30+
window.location.hash = '#!/';
31+
window.location.reload(); // To force the redownload
3132
}
3233

3334
$onChanges(changes: any) {

0 commit comments

Comments
 (0)