diff --git a/web/frontend/src/api.ts b/web/frontend/src/api.ts index 7c27ef9..1002848 100644 --- a/web/frontend/src/api.ts +++ b/web/frontend/src/api.ts @@ -190,7 +190,7 @@ export interface ProjectLink { id: number from_project: string to_project: string - link_type: string + type: string description: string | null created_at: string } @@ -415,7 +415,7 @@ export const api = { get(`/pipelines/${pipelineId}/logs?since_id=${sinceId}`), projectLinks: (projectId: string) => get(`/projects/${projectId}/links`), - createProjectLink: (data: { from_project: string; to_project: string; link_type: string; description?: string }) => + createProjectLink: (data: { from_project: string; to_project: string; type: string; description?: string }) => post('/project-links', data), deleteProjectLink: (id: number) => del(`/project-links/${id}`), diff --git a/web/frontend/src/views/SettingsView.vue b/web/frontend/src/views/SettingsView.vue index bf7c70c..9cd847e 100644 --- a/web/frontend/src/views/SettingsView.vue +++ b/web/frontend/src/views/SettingsView.vue @@ -61,10 +61,10 @@ async function saveDeployConfig(projectId: string) { saveDeployConfigStatus.value[projectId] = '' try { await api.patchProject(projectId, { - deploy_host: deployHosts.value[projectId] || undefined, - deploy_path: deployPaths.value[projectId] || undefined, - deploy_runtime: deployRuntimes.value[projectId] || undefined, - deploy_restart_cmd: deployRestartCmds.value[projectId] || undefined, + deploy_host: deployHosts.value[projectId], + deploy_path: deployPaths.value[projectId], + deploy_runtime: deployRuntimes.value[projectId], + deploy_restart_cmd: deployRestartCmds.value[projectId], deploy_command: deployCommands.value[projectId] || undefined, }) saveDeployConfigStatus.value[projectId] = 'Saved'