mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
Provision to sort ISOs from UI, and Updated Templates/ISOs API response to return in the order of sortkey (#5800)
This commit is contained in:
parent
f03ed8c721
commit
9b0a1418ec
@ -561,9 +561,12 @@ public class TemplateJoinDaoImpl extends GenericDaoBaseWithTagInformation<Templa
|
||||
if (ids == null || ids.length == 0) {
|
||||
return new ArrayList<TemplateJoinVO>();
|
||||
}
|
||||
|
||||
Filter searchFilter = new Filter(TemplateJoinVO.class, "sortKey", QueryService.SortKeyAscending.value(), null, null);
|
||||
searchFilter.addOrderBy(TemplateJoinVO.class, "tempZonePair", true);
|
||||
|
||||
SearchCriteria<TemplateJoinVO> sc = tmpltIdsSearch.create();
|
||||
sc.setParameters("idsIN", ids);
|
||||
return searchIncludingRemoved(sc, null, null, false);
|
||||
return searchIncludingRemoved(sc, searchFilter, null, false);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -194,6 +194,9 @@ export default {
|
||||
if (['Admin', 'DomainAdmin'].includes(store.getters.userInfo.roletype)) {
|
||||
fields.push('account')
|
||||
}
|
||||
if (['Admin'].includes(store.getters.userInfo.roletype)) {
|
||||
fields.push('order')
|
||||
}
|
||||
return fields
|
||||
},
|
||||
details: ['name', 'id', 'displaytext', 'checksum', 'ostypename', 'size', 'bootable', 'isready', 'directdownload', 'isextractable', 'ispublic', 'isfeatured', 'crosszones', 'account', 'domain', 'created'],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user