Skip to content

Commit

Permalink
TASK: Rename factory makeReloadAfterDiscard -> `makeReloadAfterPubl…
Browse files Browse the repository at this point in the history
…ishing`
  • Loading branch information
grebaldi committed Apr 25, 2024
1 parent 8a18633 commit 4c80ffa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/neos-ui-sagas/src/Publish/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export function * watchPublishing({routes}: {routes: Routes}) {
}
};

const reloadAfterPublishing = makeReloadAfterDiscard({routes});
const reloadAfterPublishing = makeReloadAfterPublishing({routes});

yield takeEvery(actionTypes.CR.Publishing.STARTED, function * publishingWorkflow(action: ReturnType<typeof actions.CR.Publishing.start>) {
const confirmed = yield * waitForConfirmation();
Expand Down Expand Up @@ -123,19 +123,19 @@ function * waitForRetry() {
return Boolean(retried);
}

const makeReloadAfterDiscard = (deps: {
const makeReloadAfterPublishing = (deps: {
routes: Routes
}) => {
const reloadNodes = makeReloadNodes(deps);

function * reloadAfterDiscard() {
function * reloadAfterPublishing() {
yield all([
call(updateWorkspaceInfo),
call(reloadNodes)
]);
}

return reloadAfterDiscard;
return reloadAfterPublishing;
}

export function * watchChangeBaseWorkspace() {
Expand Down

0 comments on commit 4c80ffa

Please sign in to comment.