-
Notifications
You must be signed in to change notification settings - Fork 285
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2308: feat(web): split asset list and show per-asset functions below assets r=zacharyhamm a=zacharyhamm Splits the asset list panel to add a list of functions connected to each asset. Currently they will open the function in the functions screen (function tabs on asset screen and routing to follow) Co-authored-by: Zachary Hamm <[email protected]>
- Loading branch information
Showing
5 changed files
with
107 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<template> | ||
<div> | ||
<ScrollArea v-if="assetStore.selectedAssetId"> | ||
<template #top> | ||
<SidebarSubpanelTitle class="border-t-0 text-center"> | ||
Asset Functions | ||
</SidebarSubpanelTitle> | ||
</template> | ||
|
||
<ul class="overflow-y-auto min-h-[200px]"> | ||
<li | ||
v-for="func in assetStore.assetsById[assetStore.selectedAssetId] | ||
?.funcs ?? []" | ||
:key="func.id" | ||
> | ||
<SiFuncListItem :func="func" color="#921ed6" /> | ||
</li> | ||
</ul> | ||
</ScrollArea> | ||
</div> | ||
</template> | ||
|
||
<script lang="ts" setup> | ||
import { ScrollArea } from "@si/vue-lib/design-system"; | ||
import { useAssetStore } from "@/store/asset.store"; | ||
import SiFuncListItem from "@/components/SiFuncListItem.vue"; | ||
import SidebarSubpanelTitle from "@/components/SidebarSubpanelTitle.vue"; | ||
const assetStore = useAssetStore(); | ||
defineProps<{ | ||
assetId?: string; | ||
}>(); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters