mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
Add services toggle, fix branches dropdowns
This commit is contained in:
1 parent
6e4bd59e09
commit
7ef7cd3b30
4 files changed
+43
-8
No files matched your search
@@ -59,6 +59,16 @@ function createServices() {
|
||||
label: 'GraphQL',
|
||||
method: 'graphql',
|
||||
value: null
|
||||
},
|
||||
{
|
||||
label: 'VCS',
|
||||
method: 'vcs',
|
||||
value: null
|
||||
},
|
||||
{
|
||||
label: 'Proxy',
|
||||
method: 'proxy',
|
||||
value: null
|
||||
}
|
||||
]
|
||||
});
|
||||
@@ -117,6 +127,16 @@ function createServices() {
|
||||
label: 'GraphQL',
|
||||
method: 'graphql',
|
||||
value: project.serviceStatusForGraphql
|
||||
},
|
||||
{
|
||||
label: 'VCS',
|
||||
method: 'vcs',
|
||||
value: project.serviceStatusForVcs
|
||||
},
|
||||
{
|
||||
label: 'Proxy',
|
||||
method: 'proxy',
|
||||
value: project.serviceStatusForProxy
|
||||
}
|
||||
];
|
||||
set({ list });
|
||||
|
||||
@@ -67,6 +67,7 @@
|
||||
<div class="u-margin-block-start-24">
|
||||
<FormList>
|
||||
<InputSelectSearch
|
||||
required={true}
|
||||
id="branch"
|
||||
label="Select branch"
|
||||
placeholder="main"
|
||||
|
||||
+11
-4
@@ -11,6 +11,7 @@
|
||||
import type { Models } from '@appwrite.io/console';
|
||||
import { func } from '../store';
|
||||
import { invalidate } from '$app/navigation';
|
||||
import InputSelectSearch from '$lib/elements/forms/inputSelectSearch.svelte';
|
||||
|
||||
export let show: boolean;
|
||||
export let installationsList: Models.InstallationList;
|
||||
@@ -232,17 +233,23 @@
|
||||
<p>Last updated: {toLocaleDateTime(selectedRepo.pushedAt)}</p>
|
||||
</Box>
|
||||
|
||||
<InputSelect
|
||||
<InputSelectSearch
|
||||
required={true}
|
||||
id="branch"
|
||||
label="Branch"
|
||||
required={true}
|
||||
placeholder="main"
|
||||
bind:value={selectedBranch}
|
||||
bind:search={selectedBranch}
|
||||
on:select={(event) => {
|
||||
selectedBranch = event.detail.value;
|
||||
}}
|
||||
name="branch"
|
||||
options={branchesList?.branches?.map((branch) => {
|
||||
return {
|
||||
value: branch.name,
|
||||
label: branch.name
|
||||
};
|
||||
}) ?? []}
|
||||
bind:value={selectedBranch} />
|
||||
}) ?? []} />
|
||||
<InputText
|
||||
id="root"
|
||||
label="Root directory"
|
||||
|
||||
+11
-4
@@ -9,7 +9,6 @@
|
||||
Form,
|
||||
FormList,
|
||||
InputChoice,
|
||||
InputSelect,
|
||||
InputText,
|
||||
InputTextarea
|
||||
} from '$lib/elements/forms';
|
||||
@@ -25,6 +24,7 @@
|
||||
import { Pill } from '$lib/elements';
|
||||
import { wizard } from '$lib/stores/wizard';
|
||||
import ConnectExisting from '$lib/wizards/functions/connectExisting.svelte';
|
||||
import InputSelectSearch from '$lib/elements/forms/inputSelectSearch.svelte';
|
||||
|
||||
export let installations: Models.InstallationList;
|
||||
export let repository: Models.ProviderRepository | null;
|
||||
@@ -172,16 +172,23 @@
|
||||
</div>
|
||||
<div class="u-margin-block-start-24">
|
||||
<FormList>
|
||||
<InputSelect
|
||||
<InputSelectSearch
|
||||
required={true}
|
||||
id="branch"
|
||||
label="Branch"
|
||||
placeholder="main"
|
||||
bind:value={selectedBranch}
|
||||
bind:search={selectedBranch}
|
||||
on:select={(event) => {
|
||||
selectedBranch = event.detail.value;
|
||||
}}
|
||||
name="branch"
|
||||
options={branchesList?.branches?.map((branch) => {
|
||||
return {
|
||||
value: branch.name,
|
||||
label: branch.name
|
||||
};
|
||||
}) ?? []}
|
||||
bind:value={selectedBranch} />
|
||||
}) ?? []} />
|
||||
<InputText
|
||||
id="root"
|
||||
label="Root directory"
|
||||
|
||||
Reference in new issue
Block a user