1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

B #5736: Import resources only from local zone (#1811)

This commit is contained in:
Frederick Borges 2022-02-24 12:46:21 +01:00 committed by GitHub
parent 0c35323ca9
commit 6a65b9bff0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 4 deletions

View File

@ -33,7 +33,7 @@ define(function(require) {
type: "create_dialog",
text: Locale.tr("Import"),
layout: "create_flatten",
custom_classes: "only-sunstone-list",
custom_classes: "only-sunstone-list" + ((config.id_own_federation !== config.zone_id) ? " hide" : ""),
alwaysActive: true
},
"Datastore.addtocluster" : {

View File

@ -37,7 +37,7 @@ define(function(require) {
type: "create_dialog",
text: Locale.tr("Import"),
layout: "create_flatten",
custom_classes: "only-sunstone-list",
custom_classes: "only-sunstone-list" + ((config.id_own_federation !== config.zone_id) ? " hide" : ""),
alwaysActive: true
},
"Image.chown" : {

View File

@ -33,7 +33,7 @@ define(function(require) {
type: "create_dialog",
text: Locale.tr("Import"),
layout: "create_flatten",
custom_classes: "only-sunstone-list",
custom_classes: "only-sunstone-list" + ((config.id_own_federation !== config.zone_id) ? " hide" : ""),
alwaysActive: true
},
"Template.upload_marketplace_dialog" : {

View File

@ -34,7 +34,8 @@ define(function(require) {
type: "create_dialog",
layout: "create_flatten",
text: Locale.tr("Import"),
custom_classes: "only-sunstone-list"
custom_classes: "only-sunstone-list" + ((config.id_own_federation !== config.zone_id) ? " hide" : ""),
alwaysActive: true
},
"Network.instantiate_dialog" : {
type: "create_dialog",