File tree Expand file tree Collapse file tree 3 files changed +26
-0
lines changed
Expand file tree Collapse file tree 3 files changed +26
-0
lines changed Original file line number Diff line number Diff line change 404404"label.cachemode" : " Write-cache type" ,
405405"label.cancel" : " Cancel" ,
406406"label.cancelmaintenance" : " Cancel maintenance" ,
407+ "label.cancel.host.as.degraded" : " Cancel host as degraded" ,
407408"label.capacity" : " Capacity" ,
408409"label.capacitybytes" : " Capacity bytes" ,
409410"label.capacityiops" : " IOPS total" ,
570571"label.db.usage.metrics" : " DB/Usage server" ,
571572"label.dbislocal" : " The db runs locally" ,
572573"label.dc.name" : " DC name" ,
574+ "label.declare.host.as.degraded" : " Declare host as degraded" ,
573575"label.decline.invitation" : " Decline invitation" ,
574576"label.dedicate" : " Dedicate" ,
575577"label.dedicate.cluster" : " Dedicate cluster" ,
Original file line number Diff line number Diff line change @@ -290,6 +290,26 @@ export default {
290290 }
291291 }
292292 } ,
293+ {
294+ api : 'declareHostAsDegraded' ,
295+ icon : 'exception-outlined' ,
296+ label : 'label.declare.host.as.degraded' ,
297+ message : 'label.declare.host.as.degraded' ,
298+ dataView : true ,
299+ show : ( record ) => {
300+ return record . resourcestate !== 'Degraded' && ( record . state === 'Alert' || record . state === 'Disconnected' )
301+ }
302+ } ,
303+ {
304+ api : 'cancelHostAsDegraded' ,
305+ icon : 'file-done-outlined' ,
306+ label : 'label.cancel.host.as.degraded' ,
307+ message : 'label.cancel.host.as.degraded' ,
308+ dataView : true ,
309+ show : ( record ) => {
310+ return record . resourcestate === 'Degraded'
311+ }
312+ } ,
293313 {
294314 api : 'deleteHost' ,
295315 icon : 'delete-outlined' ,
Original file line number Diff line number Diff line change @@ -72,10 +72,12 @@ import {
7272 DragOutlined ,
7373 EditOutlined ,
7474 EnvironmentOutlined ,
75+ ExceptionOutlined ,
7576 ExclamationCircleOutlined ,
7677 EyeInvisibleOutlined ,
7778 EyeOutlined ,
7879 FieldTimeOutlined ,
80+ FileDoneOutlined ,
7981 FileProtectOutlined ,
8082 FilterOutlined ,
8183 FilterTwoTone ,
@@ -226,10 +228,12 @@ export default {
226228 app . component ( 'DragOutlined' , DragOutlined )
227229 app . component ( 'EditOutlined' , EditOutlined )
228230 app . component ( 'EnvironmentOutlined' , EnvironmentOutlined )
231+ app . component ( 'ExceptionOutlined' , ExceptionOutlined )
229232 app . component ( 'ExclamationCircleOutlined' , ExclamationCircleOutlined )
230233 app . component ( 'EyeInvisibleOutlined' , EyeInvisibleOutlined )
231234 app . component ( 'EyeOutlined' , EyeOutlined )
232235 app . component ( 'FieldTimeOutlined' , FieldTimeOutlined )
236+ app . component ( 'FileDoneOutlined' , FileDoneOutlined )
233237 app . component ( 'FileProtectOutlined' , FileProtectOutlined )
234238 app . component ( 'FilterOutlined' , FilterOutlined )
235239 app . component ( 'FilterTwoTone' , FilterTwoTone )
You can’t perform that action at this time.
0 commit comments