show Done on extension uninstall

This commit is contained in:
Yuri Kuznetsov
2024-01-02 13:23:51 +02:00
parent 4f7809cc4e
commit 5ca69b9cbb
+3 -1
View File
@@ -70,7 +70,9 @@ export default Dep.extend({
Espo.Ajax
.postRequest('Extension/action/uninstall', {id: id}, {timeout: 0, bypassAppReload: true})
.then(() => {
window.location.reload();
Espo.Ui.success(this.translate('Done'));
setTimeout(() => window.location.reload(), 500);
})
.catch(xhr => {
const msg = xhr.getResponseHeader('X-Status-Reason');