mirror of
https://github.com/ansible/awx.git
synced 2026-04-09 12:09:20 -02:30
Portal Mode UX / product audit items (#1867)
* finish Portal mode audit work items, resolves #1832, tracking #1335 * remove $state from injected dependencies #1872
This commit is contained in:
@@ -17,7 +17,7 @@ export default
|
|||||||
hover: true,
|
hover: true,
|
||||||
well: true,
|
well: true,
|
||||||
searchSize: 'col-lg-8 col-md-8 col-sm-12 col-xs-12',
|
searchSize: 'col-lg-8 col-md-8 col-sm-12 col-xs-12',
|
||||||
|
emptyListText: 'There are no job templates to display at this time',
|
||||||
fields: {
|
fields: {
|
||||||
name: {
|
name: {
|
||||||
key: true,
|
key: true,
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ export default
|
|||||||
well: true,
|
well: true,
|
||||||
listTitle: 'Jobs',
|
listTitle: 'Jobs',
|
||||||
searchSize: 'col-lg-8 col-md-8 col-sm-12 col-xs-12',
|
searchSize: 'col-lg-8 col-md-8 col-sm-12 col-xs-12',
|
||||||
|
emptyListText: 'There are no jobs to display at this time',
|
||||||
|
|
||||||
fields: {
|
fields: {
|
||||||
status: {
|
status: {
|
||||||
@@ -32,9 +33,8 @@ export default
|
|||||||
searchLabel: 'Status'
|
searchLabel: 'Status'
|
||||||
},
|
},
|
||||||
name: {
|
name: {
|
||||||
key: true,
|
|
||||||
label: 'Name',
|
label: 'Name',
|
||||||
columnClass: 'col-lg-4 col-md-4 col-sm-4 col-xs-6',
|
columnClass: 'col-lg-4 col-md-4 col-sm-4 col-xs-6 List-staticColumnAdjacent',
|
||||||
defaultSearchField: true,
|
defaultSearchField: true,
|
||||||
linkTo: '/#/jobs/{{job.id}}'
|
linkTo: '/#/jobs/{{job.id}}'
|
||||||
},
|
},
|
||||||
@@ -43,7 +43,7 @@ export default
|
|||||||
noLink: true,
|
noLink: true,
|
||||||
searchable: false,
|
searchable: false,
|
||||||
filter: "longDate",
|
filter: "longDate",
|
||||||
nosort: true,
|
key: true,
|
||||||
columnClass: "col-lg-4 col-md-4 col-sm-3"
|
columnClass: "col-lg-4 col-md-4 col-sm-3"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
* All Rights Reserved
|
* All Rights Reserved
|
||||||
*************************************************/
|
*************************************************/
|
||||||
|
|
||||||
export function PortalModeJobsController($scope, $state, $rootScope, GetBasePath, GenerateList, PortalJobsList, SearchInit,
|
export function PortalModeJobsController($scope, $rootScope, GetBasePath, GenerateList, PortalJobsList, SearchInit,
|
||||||
PaginateInit){
|
PaginateInit){
|
||||||
|
|
||||||
var list = PortalJobsList,
|
var list = PortalJobsList,
|
||||||
@@ -17,7 +17,7 @@ export function PortalModeJobsController($scope, $state, $rootScope, GetBasePath
|
|||||||
$rootScope.removeJobStatusChange();
|
$rootScope.removeJobStatusChange();
|
||||||
}
|
}
|
||||||
$rootScope.removeJobStatusChange = $rootScope.$on('JobStatusChange-portal', function() {
|
$rootScope.removeJobStatusChange = $rootScope.$on('JobStatusChange-portal', function() {
|
||||||
$scope.search('portal_job'); //processEvent(event);
|
$scope.search('job');
|
||||||
});
|
});
|
||||||
|
|
||||||
$scope.iterator = list.iterator;
|
$scope.iterator = list.iterator;
|
||||||
@@ -45,6 +45,9 @@ export function PortalModeJobsController($scope, $state, $rootScope, GetBasePath
|
|||||||
pageSize: pageSize
|
pageSize: pageSize
|
||||||
});
|
});
|
||||||
$scope.search (list.iterator);
|
$scope.search (list.iterator);
|
||||||
|
// hack to default to descending sort order
|
||||||
|
$scope.sort('job','started');
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@@ -63,5 +66,5 @@ export function PortalModeJobsController($scope, $state, $rootScope, GetBasePath
|
|||||||
init();
|
init();
|
||||||
}
|
}
|
||||||
|
|
||||||
PortalModeJobsController.$inject = ['$scope', '$state', '$rootScope', 'GetBasePath', 'generateList', 'PortalJobsList', 'SearchInit',
|
PortalModeJobsController.$inject = ['$scope', '$rootScope', 'GetBasePath', 'generateList', 'PortalJobsList', 'SearchInit',
|
||||||
'PaginateInit'];
|
'PaginateInit'];
|
||||||
|
|||||||
Reference in New Issue
Block a user