Skip to content

Commit b21fdc0

Browse files
committed
feat(assets-view): update sorting to prioritize asset status and add sorting on last input
Signed-off-by: Manuel Abascal <mjabascal10@gmail.com>
1 parent 257fec7 commit b21fdc0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

frontend/src/app/assets-discover/assets-view/assets-view.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export class AssetsViewComponent implements OnInit, OnDestroy {
5656
loading = false;
5757
itemsPerPage = ITEMS_PER_PAGE;
5858
viewAssetDetail: NetScanType;
59-
sortBy = AssetFieldEnum.ASSET_ID + ',asc';
59+
sortBy = AssetFieldEnum.ASSET_IS_ALIVE + ',DESC';
6060
assetsFields: UtmFieldType[] = ASSETS_FIELDS;
6161
checkbox: any;
6262
assetFieldEnum = AssetFieldEnum;
@@ -144,6 +144,7 @@ export class AssetsViewComponent implements OnInit, OnDestroy {
144144
.subscribe( {
145145
next: (assets: NetScanType[]) => {
146146
this.assets = assets;
147+
this.sortLastInput('desc');
147148
this.loading = false;
148149
this.cdr.markForCheck();
149150
},

0 commit comments

Comments
 (0)