mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
Signed-off-by: Jorge Lobo <jlobo@opennebula.io> (cherry picked from commit eccebc4c005a6f068ce9075326e1f0b10c695f49)
This commit is contained in:
parent
e391d9d236
commit
6c2329ed73
@ -164,6 +164,9 @@ define(function(require) {
|
||||
|
||||
function dashboard_quotas_running_vms(default_user_quotas, user){
|
||||
if(default_user_quotas.VM_QUOTA.VM.RUNNING_VMS){
|
||||
if(!Config.isFeatureEnabled("cloud_vm_create")){
|
||||
$(".provision_create_vm_button").hide();
|
||||
}
|
||||
var vms = QuotaWidgets.quotaInfo(
|
||||
user.VM_QUOTA.VM.RUNNING_VMS_USED,
|
||||
user.VM_QUOTA.VM.RUNNING_VMS,
|
||||
|
@ -105,5 +105,8 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="large-11 medium-12 large-centered columns">
|
||||
<a href"#" class="medium button success provision_create_vm_button"> <i class="fas fa-lg fa-plus-square"/></a>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
@ -45,7 +45,8 @@
|
||||
<div class="large-12 columns">
|
||||
<a href"#" class="medium button success provision_create_vm_button"> <i class="fas fa-lg fa-plus-square"/></a>
|
||||
<a href"#" class="medium button provision_vms_list_button">
|
||||
<i class="fas fa-lg fa-th"/></a>
|
||||
<i class="fas fa-lg fa-th"/>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -433,7 +433,13 @@ define(function(require) {
|
||||
});
|
||||
|
||||
var tab = $("#"+TAB_ID);
|
||||
ProvisionVmsList.generate($(".provision_vms_list_section"), {active: true});
|
||||
ProvisionVmsList.generate(
|
||||
$(".provision_vms_list_section"),
|
||||
{
|
||||
active: true,
|
||||
create: Config.isFeatureEnabled("cloud_vm_create")
|
||||
}
|
||||
);
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
// Boot order
|
||||
|
Loading…
x
Reference in New Issue
Block a user