mirror of
https://github.com/ansible/awx.git
synced 2026-05-20 07:17:40 -02:30
Merge pull request #7180 from jaredevantabor/view-more-less
fixing order of groups in VIEW MORE
This commit is contained in:
@@ -33,7 +33,7 @@ export default
|
|||||||
|
|
||||||
scope.seeMore = function () {
|
scope.seeMore = function () {
|
||||||
var seeMoreResolve = $q.defer();
|
var seeMoreResolve = $q.defer();
|
||||||
Rest.setUrl(scope[scope.$parent.list.iterator].related.groups);
|
Rest.setUrl(`${scope[scope.$parent.list.iterator].related.groups}/?order_by=id`);
|
||||||
Rest.get()
|
Rest.get()
|
||||||
.success(function(data) {
|
.success(function(data) {
|
||||||
if (data.next) {
|
if (data.next) {
|
||||||
@@ -50,7 +50,7 @@ export default
|
|||||||
};
|
};
|
||||||
|
|
||||||
scope.seeLess = function() {
|
scope.seeLess = function() {
|
||||||
// Trim the groups array back down to 10 items
|
// Trim the groups array back down to 5 items
|
||||||
scope.related_groups = scope.related_groups.slice(0, 5);
|
scope.related_groups = scope.related_groups.slice(0, 5);
|
||||||
// Re-set the seeMoreInteractive flag so that the "See More" will be displayed
|
// Re-set the seeMoreInteractive flag so that the "See More" will be displayed
|
||||||
scope.seeMoreInactive = true;
|
scope.seeMoreInactive = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user