mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-23 01:47:58 +00:00
Hide not owned repos from sidebar and repo list (#1453)
Co-authored-by: Lukas <lukas@slucky.de>
This commit is contained in:
@@ -14,26 +14,18 @@
|
||||
</IconButton>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent, onMounted } from 'vue';
|
||||
<script lang="ts" setup>
|
||||
import { onMounted, toRef } from 'vue';
|
||||
|
||||
import IconButton from '~/components/atomic/IconButton.vue';
|
||||
import usePipelineFeed from '~/compositions/usePipelineFeed';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'ActivePipelines',
|
||||
const pipelineFeed = usePipelineFeed();
|
||||
const activePipelines = toRef(pipelineFeed, 'activePipelines');
|
||||
const { toggle } = pipelineFeed;
|
||||
|
||||
components: { IconButton },
|
||||
|
||||
setup() {
|
||||
const pipelineFeed = usePipelineFeed();
|
||||
|
||||
onMounted(() => {
|
||||
pipelineFeed.load();
|
||||
});
|
||||
|
||||
return pipelineFeed;
|
||||
},
|
||||
onMounted(async () => {
|
||||
await pipelineFeed.load();
|
||||
});
|
||||
</script>
|
||||
|
||||
|
Reference in New Issue
Block a user