Merge "Added success messages to power change"

This commit is contained in:
Jenkins 2016-03-23 11:33:56 +00:00 committed by Gerrit Code Review
commit 429d56049f
1 changed files with 6 additions and 0 deletions

View File

@ -148,6 +148,9 @@
state: 'on'
};
return apiService.patch('/api/ironic/nodes/' + uuid + '/states/power', data)
.success(function () {
toastService.add('success', gettext('Refresh page to see updated power status'));
})
.error(function () {
toastService.add('error', gettext('Unable to power on the node'));
});
@ -167,6 +170,9 @@
state: 'off'
};
return apiService.patch('/api/ironic/nodes/' + uuid + '/states/power', data)
.success(function () {
toastService.add('success', gettext('Refresh page to see updated power status'));
})
.error(function () {
toastService.add('error', gettext('Unable to power off the node'));
});