mirror of https://github.com/portainer/portainer
feat(events): add support for container exec related events (#100)
parent
7801a91149
commit
232b180eef
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue