File tree Expand file tree Collapse file tree
client/WEB-INF/classes/resources Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# new labels (begin) **********************************************************************************************
2-
3-
2+ state.Enabled =Enabled
43# new labels (end) ************************************************************************************************
54
65
Original file line number Diff line number Diff line change 16171617
16181618<script language =" javascript" >
16191619dictionary = {
1620+ ' state.Enabled' : ' <fmt:message key="state.Enabled"/>' ,
16201621' label.system.wide.capacity' : ' <fmt:message key="label.system.wide.capacity"/>' ,
16211622' label.management' : ' <fmt:message key="label.management"/>' ,
16221623' label.guest' : ' <fmt:message key="label.guest"/>' ,
Original file line number Diff line number Diff line change 63216321 section : 'seconary-storage' ,
63226322 fields : {
63236323 name : { label : 'label.name' } ,
6324- created : { label : 'label.created' , converter : cloudStack . converters . toLocalDate }
6324+ created : { label : 'label.created' , converter : cloudStack . converters . toLocalDate } ,
6325+ resourcestate : {
6326+ label : 'label.state' ,
6327+ indicator : {
6328+ 'Enabled' : 'on' ,
6329+ 'Disabled' : 'off' ,
6330+ 'Destroyed' : 'off'
6331+ } ,
6332+ converter : function ( str ) {
6333+ return 'state.' + str ;
6334+ }
6335+ }
63256336 } ,
63266337
63276338 dataProvider : function ( args ) {
64106421 detailView : {
64116422 name : 'Secondary storage details' ,
64126423 actions : {
6413- 'delete' : {
6424+ destroy : {
64146425 label : 'label.action.delete.secondary.storage' ,
64156426 messages : {
64166427 confirm : function ( args ) {
64266437 dataType : "json" ,
64276438 async : true ,
64286439 success : function ( json ) {
6429- args . response . success ( { data : { } } ) ;
6440+ args . response . success ( ) ;
64306441 }
64316442 } ) ;
64326443 } ,
64336444 notification : {
6434- poll : function ( args ) { args . complete ( ) ; }
6445+ poll : function ( args ) { args . complete ( { data : { resourcestate : 'Destroyed' } } ) ; }
64356446 }
64366447 }
64376448
72587269 var secondarystorageActionfilter = function ( args ) {
72597270 var jsonObj = args . context . item ;
72607271 var allowedActions = [ ] ;
7261- allowedActions . push ( "delete " ) ;
7272+ allowedActions . push ( "destroy " ) ;
72627273 return allowedActions ;
72637274 }
72647275
You can’t perform that action at this time.
0 commit comments