add rank support
This commit is contained in:
1 parent
a3f49d4b0b
commit
18b59b7a50
5 files changed
+23
-11
No files matched your search
@@ -223,7 +223,8 @@ export default defineComponent({
|
||||
limit: this.limit,
|
||||
offset: (this.page - 1) * this.limit,
|
||||
user_id: this.$store.getters.user.id,
|
||||
type: this.type
|
||||
type: this.type,
|
||||
ordering: '-created_at'
|
||||
})
|
||||
.then(({ data: data }: { data: IApplicationListResponse }) => {
|
||||
this.applications = data.items;
|
||||
|
||||
@@ -205,7 +205,9 @@ export default defineComponent({
|
||||
onFetchApis() {
|
||||
this.loadingApis = true;
|
||||
apiOperator
|
||||
.getAllForService(this.id)
|
||||
.getAllForService(this.id, {
|
||||
ordering: 'rank'
|
||||
})
|
||||
.then(({ data: data }: { data: IApiListResponse }) => {
|
||||
this.apis = data.items;
|
||||
this.loadingApis = false;
|
||||
@@ -217,7 +219,9 @@ export default defineComponent({
|
||||
onFetchProxies() {
|
||||
this.loadingProxies = true;
|
||||
proxyOperator
|
||||
.getAllForService(this.id)
|
||||
.getAllForService(this.id, {
|
||||
ordering: 'rank'
|
||||
})
|
||||
.then(({ data: data }: { data: IProxyListResponse }) => {
|
||||
this.proxies = data.items;
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user