* Hide client in quickon
This commit is contained in:
@@ -118,7 +118,7 @@ formPanel
|
||||
),
|
||||
formRow
|
||||
(
|
||||
setClass('hide-service'),
|
||||
($config->isContainer || $config->inQuickon) ? setClass('hidden') : setClass('hide-service'),
|
||||
formGroup
|
||||
(
|
||||
set::name("client"),
|
||||
|
||||
@@ -122,7 +122,7 @@ formPanel
|
||||
),
|
||||
formRow
|
||||
(
|
||||
setClass('hide-service'),
|
||||
($config->isContainer || $config->inQuickon) ? setClass('hidden') : setClass('hide-service'),
|
||||
formGroup
|
||||
(
|
||||
set::name("client"),
|
||||
|
||||
+8
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user