mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 02:56:41 +07:00
setting changed on actual map change
This commit is contained in:
parent
34f98fb08b
commit
1a00b98ba3
3 changed files with 17 additions and 8 deletions
|
@ -313,7 +313,16 @@ function* sendSaveRequestSaga({
|
|||
);
|
||||
}
|
||||
|
||||
function* setChanged() {
|
||||
const { changed } = yield select(selectEditor);
|
||||
if (changed) return;
|
||||
|
||||
yield put(editorSetChanged(true));
|
||||
}
|
||||
|
||||
export function* mapSaga() {
|
||||
yield takeEvery([MAP_ACTIONS.SET_ROUTE, MAP_ACTIONS.SET_STICKER], setChanged);
|
||||
|
||||
// TODO: setChanged on set route, logo, provider, stickers
|
||||
yield takeEvery(EDITOR_ACTIONS.START_EDITING, startEditingSaga);
|
||||
yield takeEvery(EDITOR_ACTIONS.SET_ACTIVE_STICKER, setActiveStickerSaga);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue