* Hide client in quickon

This commit is contained in:
zenggang
2023-08-18 08:02:39 +00:00
parent fd0ea1172e
commit 06d7bae159
3 changed files with 10 additions and 3 deletions
+1 -1
View File
@@ -118,7 +118,7 @@ formPanel
),
formRow
(
setClass('hide-service'),
($config->isContainer || $config->inQuickon) ? setClass('hidden') : setClass('hide-service'),
formGroup
(
set::name("client"),
+1 -1
View File
@@ -122,7 +122,7 @@ formPanel
),
formRow
(
setClass('hide-service'),
($config->isContainer || $config->inQuickon) ? setClass('hidden') : setClass('hide-service'),
formGroup
(
set::name("client"),
+8 -1
View File
@@ -22,7 +22,14 @@ class repoZen extends repo
*/
protected function prepareCreate(form $formData, bool $isPipelineServer): object|false
{
if(!$this->checkClient()) return false;
if($this->config->inContainer || $this->config->inQuickon)
{
$formData->data->client = $_POST['client'] = $this->post->SCM == 'Subversion' ? 'svn' : 'git';
}
else
{
if(!$this->checkClient()) return false;
}
if(!$this->checkConnection()) return false;
$repo = $formData