Skip to content

Commit

Permalink
Merge pull request #4123 from systeminit/feat/editing-filter
Browse files Browse the repository at this point in the history
Feat: add filter for editing assets
  • Loading branch information
jobelenus authored Jul 10, 2024
2 parents d2c2696 + 37cb249 commit 357dbb7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/web/src/components/AssetListPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ const onExport = () => exportSuccessModalRef.value?.open();
const filters = computed(() => [
assetList.value.filter((a) => a.canContribute),
assetList.value.filter((a) => a.canUpdate),
assetList.value.filter((a) => !a.isLocked),
]);
const searchFiltersWithCounts = computed(() => {
Expand All @@ -270,6 +271,12 @@ const searchFiltersWithCounts = computed(() => {
iconName: "code-deployed",
count: filters.value[1]?.length,
},
{
name: "Editing Assets",
iconTone: "action",
iconName: "sliders-vertical",
count: filters.value[2]?.length,
},
];
return searchFilters;
});
Expand Down

0 comments on commit 357dbb7

Please sign in to comment.