mirror of
https://github.com/portainer/portainer.git
synced 2025-08-04 21:35:23 +02:00
feat(stacks): add support for stack deploy (#1280)
This commit is contained in:
parent
80827935da
commit
587e2fa673
77 changed files with 3219 additions and 702 deletions
19
app/directives/taskList/porTaskList.js
Normal file
19
app/directives/taskList/porTaskList.js
Normal file
|
@ -0,0 +1,19 @@
|
|||
angular.module('portainer')
|
||||
.controller('porTaskListController', ['Pagination',
|
||||
function (Pagination) {
|
||||
var ctrl = this;
|
||||
ctrl.state = {
|
||||
pagination_count: Pagination.getPaginationCount('tasks_list')
|
||||
};
|
||||
ctrl.sortType = 'Updated';
|
||||
ctrl.sortReverse = true;
|
||||
|
||||
ctrl.order = function(sortType) {
|
||||
ctrl.sortReverse = (ctrl.sortType === sortType) ? !ctrl.sortReverse : false;
|
||||
ctrl.sortType = sortType;
|
||||
};
|
||||
|
||||
ctrl.changePaginationCount = function() {
|
||||
Pagination.setPaginationCount('tasks_list', ctrl.state.pagination_count);
|
||||
};
|
||||
}]);
|
Loading…
Add table
Add a link
Reference in a new issue