Skip to content

Commit 1d3f6bd

Browse files
committed
services/design: Extract setNewDesign() method
1 parent 98f1fea commit 1d3f6bd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/services/design.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ export default class DesignService extends Service {
2020

2121
@action
2222
toggle() {
23-
this.useNewDesign = !this.useNewDesign;
23+
this.setNewDesign(!this.useNewDesign);
24+
}
25+
26+
setNewDesign(value) {
27+
this.useNewDesign = value;
2428
localStorage.setItem('use-new-design', String(this.useNewDesign));
2529
}
2630
}

0 commit comments

Comments
 (0)