1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-02-27 13:57:23 +03:00

F #1377: Resolved Bugs

This commit is contained in:
juanmont 2018-01-24 17:04:17 +01:00 committed by Ruben S. Montero
parent 6d86753f64
commit 5399f21a8e
9 changed files with 34 additions and 31 deletions

View File

@ -430,6 +430,10 @@ define(function(require) {
$("button[data-toggle=" + customId + "lock_buttons]", actionBlock).remove();
}
if ($("#" + customId + "vmspause_buttons li", actionBlock).length == 0) {
$("button[data-toggle=" + customId + "vmspause_buttons]", actionBlock).remove();
}
if ($("#" + customId + "vmsrepeat_buttons li", actionBlock).length == 0) {
$("button[data-toggle=" + customId + "vmsrepeat_buttons]", actionBlock).remove();
}

View File

@ -87,25 +87,25 @@ define(function(require) {
},
"Image.lockA" : {
type: "action",
text: Locale.tr("Admin") + "<span class='right'>&nbsp;" + Tips.html(Locale.tr("Lock Admin actions")) + "</span>",
text: Locale.tr("Admin"),
layout: "lock_buttons",
data: 3
},
"Image.lockM" : {
type: "action",
text: Locale.tr("Manage") + "<span class='right'>&nbsp;" + Tips.html(Locale.tr("Lock Manage actions")) + "</span>",
text: Locale.tr("Manage"),
layout: "lock_buttons",
data: 2
},
"Image.lockU" : {
type: "action",
text: Locale.tr("Use") + "<span class='right'>&nbsp;" + Tips.html(Locale.tr("Lock Use actions")) + "</span>",
text: Locale.tr("Use"),
layout: "lock_buttons",
data: 1
},
"Image.unlock" : {
type: "action",
text: Locale.tr("Unlock") + "<span class='right'>&nbsp;" + Tips.html(Locale.tr("Unlock all actions")) + "</span>",
text: Locale.tr("Unlock"),
layout: "lock_buttons"
}
}

View File

@ -70,25 +70,25 @@ define(function(require) {
},
"MarketPlaceApp.lockA" : {
type: "action",
text: Locale.tr("Admin") + "<span class='right'>&nbsp;" + Tips.html(Locale.tr("Lock Admin actions")) + "</span>",
text: Locale.tr("Admin"),
layout: "lock_buttons",
data: 3
},
"MarketPlaceApp.lockM" : {
type: "action",
text: Locale.tr("Manage") + "<span class='right'>&nbsp;" + Tips.html(Locale.tr("Lock Manage actions")) + "</span>",
text: Locale.tr("Manage"),
layout: "lock_buttons",
data: 2
},
"MarketPlaceApp.lockU" : {
type: "action",
text: Locale.tr("Use") + "<span class='right'>&nbsp;" + Tips.html(Locale.tr("Lock Use actions")) + "</span>",
text: Locale.tr("Use"),
layout: "lock_buttons",
data: 1
},
"MarketPlaceApp.unlock" : {
type: "action",
text: Locale.tr("Unlock") + "<span class='right'>&nbsp;" + Tips.html(Locale.tr("Unlock all actions")) + "</span>",
text: Locale.tr("Unlock"),
layout: "lock_buttons"
}
};

View File

@ -86,25 +86,25 @@ define(function(require) {
},
"Template.lockA" : {
type: "action",
text: Locale.tr("Admin") + "<span class='right'>&nbsp;" + Tips.html(Locale.tr("Lock Admin actions")) + "</span>",
text: Locale.tr("Admin"),
layout: "lock_buttons",
data: 3
},
"Template.lockM" : {
type: "action",
text: Locale.tr("Manage") + "<span class='right'>&nbsp;" + Tips.html(Locale.tr("Lock Manage actions")) + "</span>",
text: Locale.tr("Manage"),
layout: "lock_buttons",
data: 2
},
"Template.lockU" : {
type: "action",
text: Locale.tr("Use") + "<span class='right'>&nbsp;" + Tips.html(Locale.tr("Lock Use actions")) + "</span>",
text: Locale.tr("Use"),
layout: "lock_buttons",
data: 1
},
"Template.unlock" : {
type: "action",
text: Locale.tr("Unlock") + "<span class='right'>&nbsp;" + Tips.html(Locale.tr("Unlock all actions")) + "</span>",
text: Locale.tr("Unlock"),
layout: "lock_buttons"
}
};

View File

@ -55,25 +55,25 @@ define(function(require) {
},
"VMGroup.lockA" : {
type: "action",
text: Locale.tr("Admin") + "<span class='right'>&nbsp;" + Tips.html(Locale.tr("Lock Admin actions")) + "</span>",
text: Locale.tr("Admin"),
layout: "lock_buttons",
data: 3
},
"VMGroup.lockM" : {
type: "action",
text: Locale.tr("Manage") + "<span class='right'>&nbsp;" + Tips.html(Locale.tr("Lock Manage actions")) + "</span>",
text: Locale.tr("Manage"),
layout: "lock_buttons",
data: 2
},
"VMGroup.lockU" : {
type: "action",
text: Locale.tr("Use") + "<span class='right'>&nbsp;" + Tips.html(Locale.tr("Lock Use actions")) + "</span>",
text: Locale.tr("Use"),
layout: "lock_buttons",
data: 1
},
"VMGroup.unlock" : {
type: "action",
text: Locale.tr("Unlock") + "<span class='right'>&nbsp;" + Tips.html(Locale.tr("Unlock all actions")) + "</span>",
text: Locale.tr("Unlock"),
layout: "lock_buttons"
}/*,
"VMGroup.edit_labels" : {

View File

@ -200,25 +200,25 @@ define(function(require) {
},
"VM.lockA" : {
type: "action",
text: Locale.tr("Admin") + "<span class='right'>&nbsp;" + Tips.html(Locale.tr("Lock Admin actions")) + "</span>",
text: Locale.tr("Admin"),
layout: "lock_buttons",
data: 3
},
"VM.lockM" : {
type: "action",
text: Locale.tr("Manage") + "<span class='right'>&nbsp;" + Tips.html(Locale.tr("Lock Manage actions")) + "</span>",
text: Locale.tr("Manage"),
layout: "lock_buttons",
data: 2
},
"VM.lockU" : {
type: "action",
text: Locale.tr("Use") + "<span class='right'>&nbsp;" + Tips.html(Locale.tr("Lock Use actions")) + "</span>",
text: Locale.tr("Use"),
layout: "lock_buttons",
data: 1
},
"VM.unlock" : {
type: "action",
text: Locale.tr("Unlock") + "<span class='right'>&nbsp;" + Tips.html(Locale.tr("Unlock all actions")) + "</span>",
text: Locale.tr("Unlock"),
layout: "lock_buttons"
}
}

View File

@ -49,10 +49,9 @@ define(function(require) {
$('.resource-info-header-small', '#' + TAB_ID).text(state);
if (element.LOCK){
$('.resource-lock-header-small', '#' + TAB_ID).html("<i class='header-title fa fa-lock'> "+Locale.tr(Humanize.lock_to_str(element.LOCK.LOCKED))+"</i>");
$('.resource-lock-header-small', '#' + TAB_ID).show();
$('.resource-lock-header-small', '#' + contextTabId).html("<span data-tooltip aria-haspopup='true' class='has-tip' data-disable-hover='false' tabindex='1' title="+Locale.tr(Humanize.lock_to_str(element.LOCK.LOCKED))+"><i class='fa fa-lock fa-2x'/></span>");
} else {
$('.resource-lock-header-small', '#' + TAB_ID).hide();
$('.resource-lock-header-small', '#' + contextTabId).html("<i style='color: #cacedd;' class='fa fa-unlock-alt fa-2x'/>");
}
}

View File

@ -77,25 +77,25 @@ define(function(require) {
},
"Network.lockA" : {
type: "action",
text: Locale.tr("Admin") + "<span class='right'>&nbsp;" + Tips.html(Locale.tr("Lock Admin actions")) + "</span>",
text: Locale.tr("Admin"),
layout: "lock_buttons",
data: 3
},
"Network.lockM" : {
type: "action",
text: Locale.tr("Manage") + "<span class='right'>&nbsp;" + Tips.html(Locale.tr("Lock Manage actions")) + "</span>",
text: Locale.tr("Manage"),
layout: "lock_buttons",
data: 2
},
"Network.lockU" : {
type: "action",
text: Locale.tr("Use") + "<span class='right'>&nbsp;" + Tips.html(Locale.tr("Lock Use actions")) + "</span>",
text: Locale.tr("Use"),
layout: "lock_buttons",
data: 1
},
"Network.unlock" : {
type: "action",
text: Locale.tr("Unlock") + "<span class='right'>&nbsp;" + Tips.html(Locale.tr("Unlock all actions")) + "</span>",
text: Locale.tr("Unlock"),
layout: "lock_buttons"
}
};

View File

@ -57,25 +57,25 @@ define(function(require) {
},
"VirtualRouter.lockA" : {
type: "action",
text: Locale.tr("Admin") + "<span class='right'>&nbsp;" + Tips.html(Locale.tr("Lock Admin actions")) + "</span>",
text: Locale.tr("Admin"),
layout: "lock_buttons",
data: 3
},
"VirtualRouter.lockM" : {
type: "action",
text: Locale.tr("Manage") + "<span class='right'>&nbsp;" + Tips.html(Locale.tr("Lock Manage actions")) + "</span>",
text: Locale.tr("Manage"),
layout: "lock_buttons",
data: 2
},
"VirtualRouter.lockU" : {
type: "action",
text: Locale.tr("Use") + "<span class='right'>&nbsp;" + Tips.html(Locale.tr("Lock Use actions")) + "</span>",
text: Locale.tr("Use"),
layout: "lock_buttons",
data: 1
},
"VirtualRouter.unlock" : {
type: "action",
text: Locale.tr("Unlock") + "<span class='right'>&nbsp;" + Tips.html(Locale.tr("Unlock all actions")) + "</span>",
text: Locale.tr("Unlock"),
layout: "lock_buttons"
}
};