Skip to content

Commit

Permalink
TASK: Remove legacy state.ui.remote.isSyncing
Browse files Browse the repository at this point in the history
  • Loading branch information
grebaldi committed Apr 22, 2024
1 parent d48a3ed commit 9991500
Showing 1 changed file with 2 additions and 26 deletions.
28 changes: 2 additions & 26 deletions packages/neos-ui-redux-store/src/UI/Remote/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,11 @@ import {InitAction} from '../../System';
import {NodeContextPath} from '@neos-project/neos-ts-interfaces';

export interface State extends Readonly<{
isSaving: boolean,
isSyncing: boolean
isSaving: boolean
}> {}

export const defaultState: State = {
isSaving: false,
isSyncing: false
isSaving: false
};

//
Expand All @@ -22,8 +20,6 @@ export enum actionTypes {
FINISH_SAVING = '@neos/neos-ui/UI/Remote/FINISH_SAVING',
LOCK_PUBLISHING = '@neos/neos-ui/UI/Remote/LOCK_PUBLISHING',
UNLOCK_PUBLISHING = '@neos/neos-ui/UI/Remote/UNLOCK_PUBLISHING',
START_SYNCHRONIZATION = '@neos/neos-ui/UI/Remote/START_SYNCHRONIZATION',
FINISH_SYNCHRONIZATION = '@neos/neos-ui/UI/Remote/FINISH_SYNCHRONIZATION',
DOCUMENT_NODE_CREATED = '@neos/neos-ui/UI/Remote/DOCUMENT_NODE_CREATED'
}

Expand All @@ -37,16 +33,6 @@ const startSaving = () => createAction(actionTypes.START_SAVING);
*/
const finishSaving = () => createAction(actionTypes.FINISH_SAVING);

/**
* Marks an ongoing synchronization process.
*/
const startSynchronization = () => createAction(actionTypes.START_SYNCHRONIZATION);

/**
* Marks that an ongoing synchronization process has finished.
*/
const finishSynchronization = () => createAction(actionTypes.FINISH_SYNCHRONIZATION);

/**
* Marks that an publishing process has been locked.
*/
Expand All @@ -70,8 +56,6 @@ export const actions = {
finishSaving,
lockPublishing,
unlockPublishing,
startSynchronization,
finishSynchronization,
documentNodeCreated
};

Expand All @@ -98,14 +82,6 @@ export const reducer = (state: State = defaultState, action: InitAction | Action
draft.isSaving = false;
break;
}
case actionTypes.START_SYNCHRONIZATION: {
draft.isSyncing = true;
break;
}
case actionTypes.FINISH_SYNCHRONIZATION: {
draft.isSyncing = false;
break;
}
}
});

Expand Down

0 comments on commit 9991500

Please sign in to comment.