Revision 9ac432ec ui/templates/machines_list.html

b/ui/templates/machines_list.html
139 139

  
140 140
// TODO: This should be populated with more rules for all available states
141 141
//a key represents an action, while values are lists with permitted states to which the action can be applied
142
var actions = { 'reboot':        ['UNKOWN', 'ACTIVE', 'REBOOT', 'multiple'],
143
                'shutdown':      ['UNKOWN', 'ACTIVE', 'REBOOT', 'multiple'],
144
                'connect':       ['UNKOWN', 'ACTIVE'],
142
var actions = { 'reboot':        ['UNKOWN', 'ACTIVE', 'REBOOT', 'network', 'multiple'],
143
                'shutdown':      ['UNKOWN', 'ACTIVE', 'REBOOT', 'network', 'multiple'],
144
                'connect':       ['UNKOWN', 'network'],
145 145
                //'network-connect':       ['UNKOWN', 'ACTIVE'],
146 146
                //'network-disconnect':    ['UNKOWN', 'ACTIVE', 'network'],
147
                'console':       ['UNKOWN', 'ACTIVE', 'multiple'],
148
                'details':       ['UNKOWN', 'ACTIVE', 'REBOOT', 'STOPPED'],
147
                'console':       ['UNKOWN', 'ACTIVE', 'multiple', 'network'],
148
                'details':       ['UNKOWN', 'ACTIVE', 'REBOOT', 'STOPPED', 'network'],
149 149
                'start':         ['UNKOWN', 'STOPPED', 'multiple'],
150
                'destroy':       ['UNKOWN', 'ACTIVE', 'STOPPED', 'REBOOT', 'ERROR', 'BUILD', 'multiple']
150
                'destroy':       ['UNKOWN', 'ACTIVE', 'STOPPED', 'REBOOT', 'ERROR', 'BUILD', 'network', 'multiple']
151 151
                //'group':         ['UNKOWN', 'ACTIVE', 'STOPPED', 'REBOOT','multiple'],
152 152
               };
153 153

  

Also available in: Unified diff