use of org.ovirt.engine.ui.frontend.utils.GlusterVolumeUtils.VolumeStatus in project ovirt-engine by oVirt.
the class VolumeStatusCell method onBrowserEvent.
@Override
public void onBrowserEvent(Context context, Element parent, GlusterVolumeEntity volume, NativeEvent event, ValueUpdater<GlusterVolumeEntity> valueUpdater) {
super.onBrowserEvent(context, parent, volume, event, valueUpdater);
VolumeStatus status = GlusterVolumeUtils.getVolumeStatus(volume);
if (BrowserEvents.CLICK.equals(event.getType()) && onClickCommand != null && (status == VolumeStatus.ALL_BRICKS_DOWN || status == VolumeStatus.SOME_BRICKS_DOWN)) {
onClickCommand.execute();
}
}
Aggregations