woodpecker/web/src/components/build-feed/BuildFeedSidebar.vue
Anbraten 66be4923d2
Update dependencies and tiny adjustments to UI (#1083)
- updated all web/ dependencies
- fixed icon positioning issue
- changed text color of pipeline message
- add hover underline effect to breadcrumb org name
2022-08-09 14:13:32 +02:00

40 lines
1.1 KiB
Vue

<template>
<div
v-if="isBuildFeedOpen"
class="flex flex-col overflow-y-auto items-center bg-white dark:bg-dark-gray-800 dark:border-dark-500"
>
<router-link
v-for="build in sortedBuildFeed"
:key="build.id"
:to="{ name: 'repo-build', params: { repoOwner: build.owner, repoName: build.name, buildId: build.number } }"
class="flex border-b py-4 px-2 w-full hover:bg-light-300 dark:hover:bg-dark-gray-900 dark:border-dark-gray-600 hover:shadow-sm"
>
<BuildFeedItem :build="build" />
</router-link>
<span v-if="sortedBuildFeed.length === 0" class="text-color m-4">{{ $t('repo.build.no_pipelines') }}</span>
</div>
</template>
<script lang="ts">
import { defineComponent } from 'vue';
import BuildFeedItem from '~/components/build-feed/BuildFeedItem.vue';
import useBuildFeed from '~/compositions/useBuildFeed';
export default defineComponent({
name: 'BuildFeedSidebar',
components: { BuildFeedItem },
setup() {
const buildFeed = useBuildFeed();
return {
isBuildFeedOpen: buildFeed.isOpen,
sortedBuildFeed: buildFeed.sortedBuilds,
};
},
});
</script>