|
|
@@ -81,20 +81,15 @@ class VmsDataTable extends DataTable implements ClientArea, AdminArea
|
|
|
//migrate
|
|
|
$this->addActionButton(new MigrateButton());
|
|
|
}
|
|
|
-
|
|
|
+ if (isAdmin() || $this->configuration()->isPermissionNovnc()){
|
|
|
+ //console
|
|
|
+ $this->addActionButton(new ConsoleButton());
|
|
|
+ $consoleUrl = "test";
|
|
|
+ $this->actionButtons['consoleButton']->htmlAttributes['@click'] = 'redirect($event, ' . $consoleUrl . ')';
|
|
|
+ }
|
|
|
if(!$isAdmin){
|
|
|
//edit
|
|
|
- $this->addActionButton(new ConsoleButton());
|
|
|
$this->addActionButton(new ManageButton());
|
|
|
-
|
|
|
- logModuleCall(
|
|
|
- 'proxmoxCloud',
|
|
|
- __FUNCTION__,
|
|
|
- $this->actionButtons,
|
|
|
- 'Debug',
|
|
|
- $this->actionButtons['consoleButton']
|
|
|
- );
|
|
|
-
|
|
|
}
|
|
|
//delete
|
|
|
$this->addActionButton(new DeleteButton());
|