Hide not owned repos from sidebar and repo list (#1453)

Co-authored-by: Lukas <lukas@slucky.de>
This commit is contained in:
Anbraten
2023-01-31 09:37:11 +01:00
committed by GitHub
parent 420ac54e62
commit 4c97a0104e
13 changed files with 188 additions and 219 deletions

View File

@@ -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>