mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-01-21 06:38:34 +00:00
Merge branch 'origin/main' into 'next-release/main'
This commit is contained in:
commit
dd185c6c41
1 changed files with 4 additions and 3 deletions
|
@ -14,9 +14,9 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<div class="flex flex-col gap-4">
|
<div class="flex flex-col gap-4">
|
||||||
<RepoItem v-for="repo in searchedRepos" :key="repo.id" :repo="repo" />
|
<RepoItem v-for="repo in reposLastActivity" :key="repo.id" :repo="repo" />
|
||||||
</div>
|
</div>
|
||||||
<div v-if="(searchedRepos || []).length <= 0" class="text-center">
|
<div v-if="(reposLastActivity || []).length <= 0" class="text-center">
|
||||||
<span class="text-wp-text-100 m-auto">{{ $t('repo.user_none') }}</span>
|
<span class="text-wp-text-100 m-auto">{{ $t('repo.user_none') }}</span>
|
||||||
</div>
|
</div>
|
||||||
</Scaffold>
|
</Scaffold>
|
||||||
|
@ -34,7 +34,7 @@ import { useRepoSearch } from '~/compositions/useRepoSearch';
|
||||||
import { useRepoStore } from '~/store/repos';
|
import { useRepoStore } from '~/store/repos';
|
||||||
|
|
||||||
const repoStore = useRepoStore();
|
const repoStore = useRepoStore();
|
||||||
const { repoWithLastPipeline } = useRepos();
|
const { repoWithLastPipeline, sortReposByLastActivity } = useRepos();
|
||||||
|
|
||||||
const org = inject('org');
|
const org = inject('org');
|
||||||
const orgPermissions = inject('org-permissions');
|
const orgPermissions = inject('org-permissions');
|
||||||
|
@ -46,6 +46,7 @@ const repos = computed(() =>
|
||||||
.map(repoWithLastPipeline),
|
.map(repoWithLastPipeline),
|
||||||
);
|
);
|
||||||
const { searchedRepos } = useRepoSearch(repos, search);
|
const { searchedRepos } = useRepoSearch(repos, search);
|
||||||
|
const reposLastActivity = computed(() => sortReposByLastActivity(searchedRepos.value || []));
|
||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
await repoStore.loadRepos(); // TODO: load only org repos
|
await repoStore.loadRepos(); // TODO: load only org repos
|
||||||
|
|
Loading…
Reference in a new issue