mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-25 17:33:28 +01:00
parent
5539cc1a2d
commit
c20beab0a0
@ -414,6 +414,15 @@ export const cloneItem = (newName, itemUid, collectionUid) => (dispatch, getStat
|
|||||||
.then(() => ipcRenderer.invoke('renderer:new-request', fullName, itemToSave))
|
.then(() => ipcRenderer.invoke('renderer:new-request', fullName, itemToSave))
|
||||||
.then(resolve)
|
.then(resolve)
|
||||||
.catch(reject);
|
.catch(reject);
|
||||||
|
|
||||||
|
dispatch(
|
||||||
|
insertTaskIntoQueue({
|
||||||
|
uid: uuid(),
|
||||||
|
type: 'OPEN_REQUEST',
|
||||||
|
collectionUid,
|
||||||
|
itemPathname: fullName
|
||||||
|
})
|
||||||
|
);
|
||||||
} else {
|
} else {
|
||||||
return reject(new Error('Duplicate request names are not allowed under the same folder'));
|
return reject(new Error('Duplicate request names are not allowed under the same folder'));
|
||||||
}
|
}
|
||||||
@ -434,6 +443,15 @@ export const cloneItem = (newName, itemUid, collectionUid) => (dispatch, getStat
|
|||||||
.then(() => ipcRenderer.invoke('renderer:new-request', fullName, itemToSave))
|
.then(() => ipcRenderer.invoke('renderer:new-request', fullName, itemToSave))
|
||||||
.then(resolve)
|
.then(resolve)
|
||||||
.catch(reject);
|
.catch(reject);
|
||||||
|
|
||||||
|
dispatch(
|
||||||
|
insertTaskIntoQueue({
|
||||||
|
uid: uuid(),
|
||||||
|
type: 'OPEN_REQUEST',
|
||||||
|
collectionUid,
|
||||||
|
itemPathname: fullName
|
||||||
|
})
|
||||||
|
);
|
||||||
} else {
|
} else {
|
||||||
return reject(new Error('Duplicate request names are not allowed under the same folder'));
|
return reject(new Error('Duplicate request names are not allowed under the same folder'));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user