Show warning if all containers are depleted.

This commit is contained in:
Jan Renz
2015-04-15 17:17:39 +02:00
parent 2146089a2b
commit 940eee5856
5 changed files with 16 additions and 2 deletions

View File

@ -651,6 +651,11 @@ $(function() {
})) {
showTimeoutMessage();
}
if (_.some(response, function(result) {
return result.status === 'container_depleted';
})) {
showContainerDepletedMessage();
}
if (qa_api) {
// send test response to QA
qa_api.executeCommand('syncOutput', [response]);
@ -828,6 +833,13 @@ $(function() {
}
};
var showContainerDepletedMessage = function() {
$.flash.danger({
icon: ['fa', 'fa-clock-o'],
text: $('#editor').data('message-depleted')
});
};
var showTab = function(index) {
$('a[data-toggle="tab"]').eq(index || 0).tab('show');
};