notify when connect/disconnect a server
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user