[#46] Update messages on delete application
This commit is contained in:
parent
9f5ed344f4
commit
881e66ea29
|
|
@ -15,7 +15,10 @@ export function fetchApps() {
|
||||||
* @param {int} id the application id
|
* @param {int} id the application id
|
||||||
*/
|
*/
|
||||||
export function deleteApp(id) {
|
export function deleteApp(id) {
|
||||||
axios.delete(config.get('url') + 'application/' + id).then(fetchApps).then(() => snack('Application deleted'));
|
axios.delete(config.get('url') + 'application/' + id).then(() => {
|
||||||
|
fetchApps();
|
||||||
|
dispatcher.dispatch({type: 'DELETE_MESSAGES', payload: id});
|
||||||
|
}).then(() => snack('Application deleted'));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue