mirror of
https://github.com/portainer/portainer.git
synced 2025-08-05 13:55:21 +02:00
feat(global): introduce user teams and new UAC system (#868)
This commit is contained in:
parent
a380fd9adc
commit
5523fc9023
160 changed files with 7112 additions and 3166 deletions
|
@ -246,4 +246,29 @@ angular.module('portainer.filters', [])
|
|||
}
|
||||
return '';
|
||||
};
|
||||
})
|
||||
.filter('ownershipicon', function () {
|
||||
'use strict';
|
||||
return function (ownership) {
|
||||
switch (ownership) {
|
||||
case 'private':
|
||||
return 'fa fa-eye-slash';
|
||||
case 'administrators':
|
||||
return 'fa fa-eye-slash';
|
||||
case 'restricted':
|
||||
return 'fa fa-users';
|
||||
default:
|
||||
return 'fa fa-eye';
|
||||
}
|
||||
};
|
||||
})
|
||||
.filter('tasknodename', function () {
|
||||
'use strict';
|
||||
return function (nodeId, nodes) {
|
||||
var node = _.find(nodes, { Id: nodeId });
|
||||
if (node) {
|
||||
return node.Hostname;
|
||||
}
|
||||
return '';
|
||||
};
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue