From 4697431c217b368921f9c802e3535a038ea0b31e Mon Sep 17 00:00:00 2001 From: Colin Lienard Date: Sat, 11 Nov 2023 18:55:47 +0100 Subject: [PATCH] fix: repos wrong names --- src/lib/components/dashboard/sidebar/WatchedRepos.svelte | 2 +- src/lib/components/settings/gitlab-settings/GitlabRepos.svelte | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/components/dashboard/sidebar/WatchedRepos.svelte b/src/lib/components/dashboard/sidebar/WatchedRepos.svelte index b6b15439..af52ed60 100644 --- a/src/lib/components/dashboard/sidebar/WatchedRepos.svelte +++ b/src/lib/components/dashboard/sidebar/WatchedRepos.svelte @@ -29,7 +29,7 @@ const repo = previous.splice(index, 1)[0]; return [...previous, { ...repo, number: repo.number + 1 }]; } - const [name, ownerName] = current.repository.namespace.split('/'); + const [ownerName, name] = current.repository.namespace.split('/'); return [ ...previous, { diff --git a/src/lib/components/settings/gitlab-settings/GitlabRepos.svelte b/src/lib/components/settings/gitlab-settings/GitlabRepos.svelte index 9de5358b..4ebdd5e6 100644 --- a/src/lib/components/settings/gitlab-settings/GitlabRepos.svelte +++ b/src/lib/components/settings/gitlab-settings/GitlabRepos.svelte @@ -20,7 +20,7 @@ : [{ ...defaultRepo }]; let saveDisabled: boolean | null | undefined = null; - $: addDisabled = repos.length >= 10; + $: addDisabled = repos.length >= 15; $: if (saveDisabled === null) { saveDisabled = undefined;