Skip to content

Commit

Permalink
change value of Stats colors, fix typo in storageadmin in views
Browse files Browse the repository at this point in the history
Known-Issues: Not all Forms have buttons
Signed-off-by: Aleksandar Zivkovic <[email protected]>
  • Loading branch information
anywaywayany committed Feb 27, 2024
1 parent 9e4327b commit cf55d79
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

@PageTitle("Abfragen")
@Route(value = "abfragen", layout = MainLayout.class)
@RolesAllowed({"MANAGMENT", "STORAGEADMINISTRATOR"})
@RolesAllowed({"MANAGMENT", "STORAGEADMIN"})
public class AbfragenView extends VerticalLayout {

private static final List<String> MONTH_NAMES = List.of("Januar", "Februar", "März", "April",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,8 @@ private void initStats() {
.ifPresent(o -> objectTypeMin.set(o.getMinValue().intValue()));
Span sp = new Span(key + " " + value + "/" + objectTypeMin);

if (objectTypeMin.get() - value < 5) {
if (value <= objectTypeMin.get()) {
sp.getElement().getThemeList().add("badge error");
} else if (objectTypeMin.get() - value < 50) {
sp.getElement().getThemeList().add("badge contrast");
} else {
sp.getElement().getThemeList().add("badge success");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

@PageTitle("Lagerobjekt aufnehmen")
@Route(value = "lagerobjektAufnehmen", layout = MainLayout.class)
@RolesAllowed({"FIELDSERVICETECHNICIAN", "STORAGEADMINISTRATOR"})
@RolesAllowed({"FIELDSERVICETECHNICIAN", "STORAGEADMIN"})
public class LagerobjektAufnehmenView extends VerticalLayout {

private final ServiceStorageObject storageObjectService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

@PageTitle("Lagerobjekt erfassen")
@Route(value = "lagerobjektErfassen", layout = MainLayout.class)
@RolesAllowed({"FIELDSERVICETECHNICIAN", "STORAGEADMINISTRATOR"})
@RolesAllowed({"FIELDSERVICETECHNICIAN", "STORAGEADMIN"})
public class LagerobjektErfassenView extends VerticalLayout {

private final ServiceProducer producerService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

@PageTitle("Meine Hardware")
@Route(value = "meineHardware", layout = MainLayout.class)
@RolesAllowed({"FIELDSERVICETECHNICIAN", "STORAGEADMINISTRATOR"})
@RolesAllowed({"FIELDSERVICETECHNICIAN", "STORAGEADMIN"})
public class MeineHardwareView extends TabSheet {

private final ReservationGrid reservationGrid;
Expand Down

0 comments on commit cf55d79

Please sign in to comment.