mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix UserStore
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
0d5c1fb6f7
commit
62b381e33b
@ -82,7 +82,7 @@ describe("user store tests", () => {
|
|||||||
const us = UserStore.getInstance();
|
const us = UserStore.getInstance();
|
||||||
|
|
||||||
us.colorTheme = "some other theme";
|
us.colorTheme = "some other theme";
|
||||||
await us.resetTheme();
|
us.resetTheme();
|
||||||
expect(us.colorTheme).toBe(UserStore.defaultTheme);
|
expect(us.colorTheme).toBe(UserStore.defaultTheme);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@ -159,8 +159,7 @@ export class UserStore extends BaseStore<UserStoreModel> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@action
|
@action
|
||||||
async resetTheme() {
|
resetTheme() {
|
||||||
await this.whenLoaded;
|
|
||||||
this.colorTheme = UserStore.defaultTheme;
|
this.colorTheme = UserStore.defaultTheme;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user