Fixed the issue of refreshing the tag details section for the
distributions. Signed-off-by: Gaurav <gaurav.sahay@in.bosch.com>
This commit is contained in:
@@ -137,7 +137,7 @@ public class DistributionSetTable extends AbstractNamedVersionTable<Distribution
|
|||||||
// refresh the details tabs only if selected ds is updated
|
// refresh the details tabs only if selected ds is updated
|
||||||
if (lastSelectedDsIdName != null && lastSelectedDsIdName.getId().equals(ds.getId())) {
|
if (lastSelectedDsIdName != null && lastSelectedDsIdName.getId().equals(ds.getId())) {
|
||||||
// update table row+details layout
|
// update table row+details layout
|
||||||
eventBus.publish(this, new DistributionTableEvent(BaseEntityEventType.UPDATED_ENTITY, ds));
|
eventBus.publish(this, new DistributionTableEvent(BaseEntityEventType.SELECTED_ENTITY, ds));
|
||||||
} else if (visibleItemIds.stream().filter(e -> e.getId().equals(ds.getId())).findFirst().isPresent()) {
|
} else if (visibleItemIds.stream().filter(e -> e.getId().equals(ds.getId())).findFirst().isPresent()) {
|
||||||
// update the name/version details visible in table
|
// update the name/version details visible in table
|
||||||
UI.getCurrent().access(() -> updateDistributionInTable(event.getEntity()));
|
UI.getCurrent().access(() -> updateDistributionInTable(event.getEntity()));
|
||||||
|
|||||||
@@ -155,7 +155,7 @@ public class DistributionTable extends AbstractNamedVersionTable<DistributionSet
|
|||||||
// refresh the details tabs only if selected ds is updated
|
// refresh the details tabs only if selected ds is updated
|
||||||
if (lastSelectedDsIdName != null && lastSelectedDsIdName.getId().equals(ds.getId())) {
|
if (lastSelectedDsIdName != null && lastSelectedDsIdName.getId().equals(ds.getId())) {
|
||||||
// update table row+details layout
|
// update table row+details layout
|
||||||
eventBus.publish(this, new DistributionTableEvent(BaseEntityEventType.UPDATED_ENTITY, ds));
|
eventBus.publish(this, new DistributionTableEvent(BaseEntityEventType.SELECTED_ENTITY, ds));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user