mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 16:36:15 -04:00
/admin/plugins: Add progress indicators and report errors
This commit is contained in:
parent
b35d9c14fd
commit
e8bae61cf5
4 changed files with 101 additions and 53 deletions
|
@ -81,13 +81,15 @@ exports.socketio = function (hook_name, args, cb) {
|
|||
|
||||
socket.on("install", function (plugin_name) {
|
||||
installer.install(plugin_name, function (er) {
|
||||
socket.emit("finished:install", {error: er});
|
||||
if(er) console.warn(er)
|
||||
socket.emit("finished:install", {error: er? er.message : null});
|
||||
});
|
||||
});
|
||||
|
||||
socket.on("uninstall", function (plugin_name) {
|
||||
installer.uninstall(plugin_name, function (er) {
|
||||
socket.emit("finished:uninstall", {error: er});
|
||||
if(er) console.warn(er)
|
||||
socket.emit("finished:uninstall", {error: er? er.message : null});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue