mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 11:06:40 +07:00
save: route exists warning
This commit is contained in:
parent
b26073edef
commit
9b22dc3abd
3 changed files with 3 additions and 2 deletions
|
@ -237,6 +237,7 @@ function* sendSaveRequestSaga({ title, address, force }) {
|
|||
|
||||
if (cancel) return yield put(setMode(MODES.NONE));
|
||||
if (result && result.mode === 'overwriting') return yield put(setSaveOverwrite());
|
||||
if (result && result.mode === 'exists') return yield put(setSaveError(TIPS.SAVE_EXISTS));
|
||||
if (timeout || !result || !result.success || !result.address) return yield put(setSaveError(TIPS.SAVE_TIMED_OUT));
|
||||
|
||||
return yield put(setSaveSuccess({ address: result.address, save_error: TIPS.SAVE_SUCCESS, title }));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue