mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-25 11:21:02 +00:00
Add back button to repo pipeline list (#4393)
This commit is contained in:
parent
76932698bf
commit
4ff8b3f86f
1 changed files with 4 additions and 0 deletions
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue