Add back button to repo pipeline list (#4393)

This commit is contained in:
Robert Kaussow 2024-11-17 04:17:14 +01:00 committed by GitHub
parent 76932698bf
commit 4ff8b3f86f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,6 +4,7 @@
v-model:active-tab="activeTab" v-model:active-tab="activeTab"
enable-tabs enable-tabs
disable-tab-url-hash-mode disable-tab-url-hash-mode
:go-back="goBack"
> >
<template #title> <template #title>
<span class="flex"> <span class="flex">
@ -67,6 +68,7 @@ import useAuthentication from '~/compositions/useAuthentication';
import useConfig from '~/compositions/useConfig'; import useConfig from '~/compositions/useConfig';
import { useForgeStore } from '~/compositions/useForgeStore'; import { useForgeStore } from '~/compositions/useForgeStore';
import useNotifications from '~/compositions/useNotifications'; import useNotifications from '~/compositions/useNotifications';
import { useRouteBack } from '~/compositions/useRouteBack';
import type { Forge, RepoPermissions } from '~/lib/api/types'; import type { Forge, RepoPermissions } from '~/lib/api/types';
import { usePipelineStore } from '~/store/pipelines'; import { usePipelineStore } from '~/store/pipelines';
import { useRepoStore } from '~/store/repos'; import { useRepoStore } from '~/store/repos';
@ -153,4 +155,6 @@ const activeTab = computed({
} }
}, },
}); });
const goBack = useRouteBack({ name: 'repos' });
</script> </script>