Skip to content

Commit

Permalink
feat: save RunMode to localStorage
Browse files Browse the repository at this point in the history
  • Loading branch information
Kabir-Ivan committed Jun 19, 2024
1 parent e7b2103 commit 06dda5c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/static/components/controls/run-button/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const RunMode = Object.freeze({
});

const RunButton = ({actions, autoRun, isDisabled, isRunning, failedTests, checkedTests}) => {
const [mode, setMode] = useState(RunMode.ALL);
const [mode, setMode] = useLocalStorage('RunMode', RunMode.FAILED);
const [showCheckboxes] = useLocalStorage('showCheckboxes', false);

const btnClassName = classNames('btn', {'button_blink': isRunning});
Expand Down
3 changes: 2 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@
"redux-mock-store": "^1.5.1",
"redux-thunk": "^2.2.0",
"reselect": "^4.1.6",
"rimraf": "^2.6.3",
"rimraf": "^2.7.1",
"semantic-ui-react": "^1.2.1",
"sinon": "^4.0.1",
"standard-version": "^4.0.0",
Expand Down

0 comments on commit 06dda5c

Please sign in to comment.