Skip to content
Snippets Groups Projects
Commit 8ff1e34b authored by kaloyane's avatar kaloyane
Browse files

[LMS-2416] minor: render "Delete Sample" as "Delete Plate" or "Delete Well"...

[LMS-2416] minor: render "Delete Sample" as "Delete Plate" or "Delete Well" where appropriate screening

SVN: 22924
parent b13f357d
No related merge requests found
......@@ -119,6 +119,10 @@ public final class Dict extends ch.systemsx.cisd.openbis.generic.client.web.clie
public static final String ANALYSIS_PROCEDURE = "ANALYSIS_PROCEDURE";
public static final String BUTTON_DELETE_PLATE = "button_delete_plate";
public static final String BUTTON_DELETE_WELL = "button_delete_well";
private Dict()
{
// Can not be instantiated.
......
......@@ -27,6 +27,7 @@ import ch.systemsx.cisd.openbis.generic.shared.basic.IIdAndCodeHolder;
import ch.systemsx.cisd.openbis.generic.shared.basic.TechId;
import ch.systemsx.cisd.openbis.generic.shared.basic.dto.SampleParentWithDerived;
import ch.systemsx.cisd.openbis.plugin.generic.client.web.client.application.sample.GenericSampleViewer;
import ch.systemsx.cisd.openbis.plugin.screening.client.web.client.application.Dict;
import ch.systemsx.cisd.openbis.plugin.screening.client.web.client.application.ScreeningViewContext;
import ch.systemsx.cisd.openbis.plugin.screening.shared.basic.dto.WellLocation;
......@@ -86,4 +87,11 @@ public final class ImageSampleViewer extends GenericSampleViewer
sections.add(new ImageSampleSection(screeningViewContext, sampleId, wellLocationOrNull));
return sections;
}
@Override
protected String getDeleteButtonLabel()
{
return viewContext.getMessage(Dict.BUTTON_DELETE_WELL);
}
}
......@@ -75,4 +75,10 @@ public final class PlateSampleViewer extends GenericSampleViewer
return screeningViewContext.getMessage(Dict.PLATE_VIEWER_TITLE, originalData.getCode());
}
@Override
protected String getDeleteButtonLabel()
{
return viewContext.getMessage(Dict.BUTTON_DELETE_PLATE);
}
}
......@@ -47,6 +47,8 @@ generated_samples: "Children Samples",
openbis_plate_metadata_browser_CODE: "Code",
openbis_plate_metadata_browser_TYPE: "Type",
openbis_plate_metadata_browser_THUMBNAIL: "Thumbnail",
button_delete_plate: "Delete Plate",
button_delete_well: "Delete Well",
sample_properties_heading: "Properties",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment