mirror of
https://github.com/OpenNebula/one.git
synced 2024-12-23 17:33:56 +03:00
feature #1827: Add Files tab
This commit is contained in:
parent
de536a850d
commit
3eb501ad67
@ -1403,6 +1403,7 @@ SUNSTONE_PUBLIC_JS_PLUGINS_FILES="\
|
||||
src/sunstone/public/js/plugins/infra-tab.js \
|
||||
src/sunstone/public/js/plugins/groups-tab.js \
|
||||
src/sunstone/public/js/plugins/images-tab.js \
|
||||
src/sunstone/public/js/plugins/files-tab.js \
|
||||
src/sunstone/public/js/plugins/templates-tab.js \
|
||||
src/sunstone/public/js/plugins/users-tab.js \
|
||||
src/sunstone/public/js/plugins/vms-tab.js \
|
||||
|
@ -47,6 +47,10 @@
|
||||
:ALL: true
|
||||
:user:
|
||||
:group:
|
||||
- plugins/files-tab.js:
|
||||
:ALL: true
|
||||
:user:
|
||||
:group:
|
||||
- plugins/infra-tab.js:
|
||||
:ALL: true
|
||||
:user:
|
||||
|
1088
src/sunstone/public/js/plugins/files-tab.js
Normal file
1088
src/sunstone/public/js/plugins/files-tab.js
Normal file
File diff suppressed because it is too large
Load Diff
@ -579,6 +579,11 @@ function imageElementArray(image_json){
|
||||
//Changing this? It may affect to the is_persistent() functions.
|
||||
var image = image_json.IMAGE;
|
||||
|
||||
// KERNEL || RAMDISK || CONTEXT
|
||||
if (image.TYPE == "3" || image.TYPE == "4" || image.TYPE == "5") {
|
||||
return false;
|
||||
}
|
||||
|
||||
size_images = size_images + parseInt(image.SIZE);
|
||||
|
||||
//add also persistent/non-persistent selects, type select.
|
||||
@ -624,7 +629,9 @@ function updateImagesView(request, images_list){
|
||||
size_images = 0;
|
||||
|
||||
$.each(images_list,function(){
|
||||
image_list_array.push(imageElementArray(this));
|
||||
var image = imageElementArray(this);
|
||||
if (image)
|
||||
image_list_array.push(image);
|
||||
});
|
||||
|
||||
updateView(image_list_array,dataTable_images);
|
||||
|
@ -1043,11 +1043,12 @@ function setup_disk_tab_content(disk_section, str_disk_tab_id, str_datatable_id)
|
||||
var image_list_array = [];
|
||||
|
||||
$.each(images_list,function(){
|
||||
image_list_array.push(imageElementArray(this));
|
||||
var image = imageElementArray(this);
|
||||
if (image)
|
||||
image_list_array.push(image);
|
||||
});
|
||||
|
||||
updateView(image_list_array, dataTable_template_images);
|
||||
dataTable_template_images.fnFilter("OS|DATABLOCK|CDROM", 7, true)
|
||||
},
|
||||
error: onError
|
||||
});
|
||||
@ -2029,7 +2030,9 @@ function setupCreateTemplateDialog(){
|
||||
var image_list_array = [];
|
||||
|
||||
$.each(images_list,function(){
|
||||
image_list_array.push(imageElementArray(this));
|
||||
var file = fileElementArray(this);
|
||||
if (file)
|
||||
image_list_array.push(file);
|
||||
});
|
||||
|
||||
updateView(image_list_array, dataTable_template_kernel);
|
||||
@ -2097,7 +2100,9 @@ function setupCreateTemplateDialog(){
|
||||
var image_list_array = [];
|
||||
|
||||
$.each(images_list,function(){
|
||||
image_list_array.push(imageElementArray(this));
|
||||
var file = fileElementArray(this);
|
||||
if (file)
|
||||
image_list_array.push(file);
|
||||
});
|
||||
|
||||
updateView(image_list_array, datTable_template_initrd);
|
||||
@ -2491,7 +2496,9 @@ function setupCreateTemplateDialog(){
|
||||
success: function (request, images_list){
|
||||
var image_list_array = [];
|
||||
$.each(images_list,function(){
|
||||
image_list_array.push(imageElementArray(this));
|
||||
var image = fileElementArray(this);
|
||||
if (image)
|
||||
image_list_array.push(image);
|
||||
});
|
||||
|
||||
updateView(image_list_array, datTable_template_context);
|
||||
|
Loading…
Reference in New Issue
Block a user