This commit is contained in:
zhaoke
2023-09-05 15:20:28 +08:00
parent f7a89fe530
commit 96b28fdfa3
6 changed files with 8 additions and 3 deletions
+1
View File
@@ -269,6 +269,7 @@ class instance extends control
*/
public function setting($id)
{
if(!commonModel::hasPriv('instance', 'view')) $this->loadModel('common')->deny('instance', 'view', false);
$currentResource = new stdclass;
$instance = $this->instance->getByID($id);
$currentResource = $this->cne->getAppConfig($instance);
+2
View File
@@ -24,6 +24,7 @@ formPanel
(
set::name('name'),
set::width('500px'),
set::required(true),
set::label($lang->instance->name),
set::value($instance->name),
)
@@ -35,6 +36,7 @@ formPanel
set::name('memory_kb'),
set::width('250px'),
set::control('picker'),
set::required(true),
set::label($lang->instance->adjustMem),
set::value(intval($currentResource->max->memory / 1024)),
set::items($this->instance->filterMemOptions($currentResource)),