Move all status/alert dialogs into the Left Pane
This commit is contained in:
parent
101070bf42
commit
18fd44f504
50 changed files with 1298 additions and 607 deletions
27
ts/util/registration.ts
Normal file
27
ts/util/registration.ts
Normal file
|
@ -0,0 +1,27 @@
|
|||
import * as RegistrationSelectors from '../state/selectors/registration';
|
||||
|
||||
export function markEverDone() {
|
||||
// @ts-ignore
|
||||
window.storage.put('chromiumRegistrationDoneEver', '');
|
||||
}
|
||||
|
||||
export function markDone() {
|
||||
markEverDone();
|
||||
// @ts-ignore
|
||||
window.storage.put('chromiumRegistrationDone', '');
|
||||
}
|
||||
|
||||
export function remove() {
|
||||
// @ts-ignore
|
||||
window.storage.remove('chromiumRegistrationDone');
|
||||
}
|
||||
|
||||
export function isDone() {
|
||||
// @ts-ignore
|
||||
return RegistrationSelectors.isDone(window.reduxStore.getState());
|
||||
}
|
||||
|
||||
export function everDone() {
|
||||
// @ts-ignore
|
||||
return RegistrationSelectors.everDone(window.reduxStore.getState());
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue