Show warning if all containers are depleted.
This commit is contained in:
@ -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');
|
||||
};
|
||||
|
Reference in New Issue
Block a user