mirror of
https://github.com/portainer/portainer.git
synced 2025-08-02 20:35:25 +02:00
Cleaned up controller methods, Added placeholders, fixed PortBindings and error messages.
This commit is contained in:
parent
4682ae4ca7
commit
f75d298fe1
6 changed files with 135 additions and 88 deletions
|
@ -99,4 +99,15 @@ angular.module('dockerui.filters', [])
|
|||
var date = new Date(data * 1000);
|
||||
return date.toDateString();
|
||||
};
|
||||
})
|
||||
.filter('errorMsg', function() {
|
||||
return function(object) {
|
||||
var idx = 0;
|
||||
var msg = '';
|
||||
while (object[idx] && typeof(object[idx]) === 'string') {
|
||||
msg += object[idx];
|
||||
idx++;
|
||||
}
|
||||
return msg;
|
||||
};
|
||||
});
|
||||
|
|
|
@ -119,7 +119,7 @@ angular.module('dockerui.services', ['ngResource'])
|
|||
$.gritter.add({
|
||||
title: title,
|
||||
text: text,
|
||||
time: 6000,
|
||||
time: 10000,
|
||||
before_open: function() {
|
||||
if($('.gritter-item-wrapper').length === 4) {
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue