@@ -5,7 +5,6 @@ import StaticTestsTreeBuilder from '../../tests-tree-builder/static';
55import actionNames from './action-names' ;
66import { types as modalTypes } from '../components/modals' ;
77import { QUEUED } from '../../constants/test-statuses' ;
8- import viewModes from '../../constants/view-modes' ;
98import diffModes from '../../constants/diff-modes' ;
109import { getHttpErrorMessage } from './utils' ;
1110import { fetchDataFromDatabases , mergeDatabases , connectToDatabase , getMainDatabaseUrl , getSuitesTableRows } from '../../db-utils/client' ;
@@ -202,6 +201,7 @@ export const togglePageScreenshot = () => ({type: actionNames.TOGGLE_PAGE_SCREEN
202201export const updateBottomProgressBar = ( payload ) => ( { type : actionNames . UPDATE_BOTTOM_PROGRESS_BAR , payload} ) ;
203202export const toggleTestsGroup = ( payload ) => ( { type : actionNames . TOGGLE_TESTS_GROUP , payload} ) ;
204203export const groupTestsByKey = ( payload ) => ( { type : actionNames . GROUP_TESTS_BY_KEY , payload} ) ;
204+ export const changeViewMode = ( payload ) => ( { type : actionNames . CHANGE_VIEW_MODE , payload} ) ;
205205
206206export const runCustomGuiAction = ( payload ) => {
207207 return async ( dispatch ) => {
@@ -225,16 +225,6 @@ export const setStrictMatchFilter = (strictMatchFilter) => {
225225 return { type : actionNames . VIEW_SET_STRICT_MATCH_FILTER , strictMatchFilter} ;
226226} ;
227227
228- export function changeViewMode ( mode ) {
229- switch ( mode ) {
230- case viewModes . FAILED :
231- return { type : actionNames . VIEW_SHOW_FAILED } ;
232- case viewModes . ALL :
233- default :
234- return { type : actionNames . VIEW_SHOW_ALL } ;
235- }
236- }
237-
238228export function changeDiffMode ( mode ) {
239229 switch ( mode ) {
240230 case diffModes . ONLY_DIFF . id :
0 commit comments