notify when connect/disconnect a server

This commit is contained in:
Olivier Lambert
2015-04-20 19:59:07 +02:00
parent a5c9880318
commit 027d1e8cb1

View File

@@ -45,6 +45,10 @@ export default angular.module('settings.servers', [
})
this.connectServer = (id) => {
notify.info ({
title: 'Server connect',
message: 'Connecting the server...'
});
xo.server.connect(id).catch(error => {
notify.error({
title: 'Server connection error',
@@ -54,6 +58,10 @@ export default angular.module('settings.servers', [
};
this.disconnectServer = (id) => {
notify.info ({
title: 'Server disconnect',
message: 'Disconnecting the server...'
});
xo.server.disconnect(id);
};