Skip to content

Commit

Permalink
notify when connect/disconnect a server
Browse files Browse the repository at this point in the history
  • Loading branch information
olivierlambert committed Apr 20, 2015
1 parent a5c9880 commit 027d1e8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/modules/settings/servers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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);
};

Expand Down

0 comments on commit 027d1e8

Please sign in to comment.