-
-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TASK: Update WorkspaceInfo after publish/discard
- Loading branch information
Showing
4 changed files
with
35 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* | ||
* This file is part of the Neos.Neos.Ui package. | ||
* | ||
* (c) Contributors of the Neos Project - www.neos.io | ||
* | ||
* This package is Open Source Software. For the full copyright and license | ||
* information, please view the LICENSE file which was distributed with this | ||
* source code. | ||
*/ | ||
import {put, call} from 'redux-saga/effects'; | ||
|
||
import {actions} from '@neos-project/neos-ui-redux-store'; | ||
import {WorkspaceInformation} from '@neos-project/neos-ui-redux-store/src/CR/Workspaces'; | ||
import backend from '@neos-project/neos-ui-backend-connector'; | ||
|
||
export function * updateWorkspaceInfo() { | ||
const {getWorkspaceInfo} = backend.get().endpoints; | ||
const workspaceInfo: WorkspaceInformation = yield call(getWorkspaceInfo); | ||
yield put(actions.CR.Workspaces.update(workspaceInfo)); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters