This commit is contained in:
zhaoke
2023-10-09 10:05:16 +08:00
parent 89401b5424
commit 33e9ab8a2a
3 changed files with 4 additions and 1 deletions
+1
View File
@@ -46,6 +46,7 @@ $(function()
*/
function checkMemory()
{
$('#submitBtn').attr('disabled', true);
var apps = [];
$.each(category, (index, cate) =>
{
+1 -1
View File
@@ -48,7 +48,7 @@
</table>
<div class='text-center form-actions'>
<?php echo html::a(inlink('step6'), $lang->install->solution->skip, '', "id='skipBtn' class='btn btn-install btn-wide' style='display:none;'");?>
<?php echo html::commonButton($lang->solution->install, "id='submitBtn'", 'btn btn-primary btn-wide')?>
<?php echo html::commonButton($lang->solution->install, "id='submitBtn' disabled=disabled", 'btn btn-primary btn-wide')?>
</div>
</form>
</div>
+2
View File
@@ -928,7 +928,9 @@ class InstanceModel extends model
*/
public function createInstance($app, $space, $thirdDomain, $name = '', $k8name = '', $channel = 'stable', $snippets = array())
{
$createdBy = $this->app->user->account;
if(empty($k8name)) $k8name = "{$app->chart}-" . date('YmdHis'); //name rule: chartName-userAccount-YmdHis;
if(IN_INSTALL && empty($this->app->user->account)) $createdBy = trim($this->app->company->admins, ','); //Set createdBy if in login progress;
$instanceData = new stdclass;
$instanceData->appId = $app->id;