mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
1 parent
0d5c1fb6f7
commit
62b381e33b
2 files changed
+2
-3
No files matched your search
@@ -82,7 +82,7 @@ describe("user store tests", () => {
|
||||
const us = UserStore.getInstance();
|
||||
|
||||
us.colorTheme = "some other theme";
|
||||
await us.resetTheme();
|
||||
us.resetTheme();
|
||||
expect(us.colorTheme).toBe(UserStore.defaultTheme);
|
||||
});
|
||||
|
||||
|
||||
@@ -159,8 +159,7 @@ export class UserStore extends BaseStore<UserStoreModel> {
|
||||
}
|
||||
|
||||
@action
|
||||
async resetTheme() {
|
||||
await this.whenLoaded;
|
||||
resetTheme() {
|
||||
this.colorTheme = UserStore.defaultTheme;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user