Commit 04c19a78 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

Spin loading incon during page rendering

parent 14bd78bc
......@@ -371,6 +371,9 @@
// (ERP5 title by default + sidebar)
//initHeaderOptions(gadget);
return new RSVP.Queue()
.push(function () {
return increaseLoadingCounter(gadget);
})
.push(function () {
return gadget.getDeclaredGadget('router');
})
......@@ -410,6 +413,14 @@
});
}
})
.push(function () {
return decreaseLoadingCounter(gadget);
}, function (error) {
return decreaseLoadingCounter(gadget)
.push(function () {
throw error;
});
})
.push(undefined, function (error) {
return displayError(gadget, error);
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment