1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-05 22:05:23 +02:00

feat(events): add support for container exec related events (#100)

This commit is contained in:
Anthony Lapenna 2016-08-03 21:28:27 +12:00 committed by GitHub
parent 7801a91149
commit 232b180eef

View file

@ -58,8 +58,14 @@ function createEventDetails(event) {
details = 'Container ' + eventAttr.name + ' unpaused'; details = 'Container ' + eventAttr.name + ' unpaused';
break; break;
default: default:
if (event.Action.indexOf('exec_create') === 0) {
details = 'Exec instance created';
} else if (event.Action.indexOf('exec_start') === 0) {
details = 'Exec instance started';
} else {
details = 'Unsupported event'; details = 'Unsupported event';
} }
}
break; break;
case 'image': case 'image':
switch (event.Action) { switch (event.Action) {