mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-21 23:10:44 +00:00
Some UI fixes (#2698)
- fix first log line being dropped if channel was opened - link org and repo on repo logs view - fix decline pipeline status does not update
This commit is contained in:
@@ -8,7 +8,17 @@
|
||||
:fluid-content="activeTab === 'tasks'"
|
||||
full-width-header
|
||||
>
|
||||
<template #title>{{ repo.full_name }}</template>
|
||||
<template #title>
|
||||
<span>
|
||||
<router-link :to="{ name: 'org', params: { orgId: repo.org_id } }" class="hover:underline">
|
||||
{{ repo.owner }}
|
||||
</router-link>
|
||||
/
|
||||
<router-link :to="{ name: 'repo' }" class="hover:underline">
|
||||
{{ repo.name }}
|
||||
</router-link>
|
||||
</span>
|
||||
</template>
|
||||
|
||||
<template #titleActions>
|
||||
<div class="flex md:items-center flex-col gap-2 md:flex-row md:justify-between min-w-0">
|
||||
@@ -139,6 +149,14 @@ const pipeline = pipelineStore.getPipeline(repositoryId, pipelineId);
|
||||
const { since, duration, created, message, title } = usePipeline(pipeline);
|
||||
provide('pipeline', pipeline);
|
||||
|
||||
watch(
|
||||
pipeline,
|
||||
() => {
|
||||
favicon.updateStatus(pipeline.value?.status);
|
||||
},
|
||||
{ immediate: true },
|
||||
);
|
||||
|
||||
const showDeployPipelinePopup = ref(false);
|
||||
|
||||
async function loadPipeline(): Promise<void> {
|
||||
@@ -147,8 +165,6 @@ async function loadPipeline(): Promise<void> {
|
||||
}
|
||||
|
||||
await pipelineStore.loadPipeline(repo.value.id, parseInt(pipelineId.value, 10));
|
||||
|
||||
favicon.updateStatus(pipeline.value?.status);
|
||||
}
|
||||
|
||||
const { doSubmit: cancelPipeline, isLoading: isCancelingPipeline } = useAsyncAction(async () => {
|
||||
|
Reference in New Issue
Block a user