diff --git a/src/main/java/com/bib/essensbestellungsverwaltung/WorkerMenuController.java b/src/main/java/com/bib/essensbestellungsverwaltung/WorkerMenuController.java index 42d7bcb..5d5ddcd 100644 --- a/src/main/java/com/bib/essensbestellungsverwaltung/WorkerMenuController.java +++ b/src/main/java/com/bib/essensbestellungsverwaltung/WorkerMenuController.java @@ -4,6 +4,7 @@ import javafx.fxml.FXML; import javafx.fxml.FXMLLoader; import javafx.scene.Parent; import javafx.scene.control.Button; +import javafx.scene.input.ContextMenuEvent; import javafx.scene.input.MouseEvent; import javafx.scene.layout.BorderPane; @@ -40,7 +41,6 @@ public class WorkerMenuController { @FXML public void onWochenplanClick(MouseEvent mouseEvent) { - changePage("createFoodplan-view.fxml"); setButtonActive(wochenplanButton); } @@ -60,7 +60,6 @@ public class WorkerMenuController { @FXML public void onMahlzeitClick(MouseEvent mouseEvent) { - changePage("createFood-view.fxml"); setButtonActive(mahlzeitButton); } @@ -70,8 +69,7 @@ public class WorkerMenuController { } @FXML - public void onAusloggenClick(MouseEvent mouseEvent) throws IOException { - StartViewApplication.changeScene("parentMenu-view.fxml"); + public void onAusloggenClick(MouseEvent mouseEvent) { } private void changePage(String page) { diff --git a/src/main/resources/com/bib/essensbestellungsverwaltung/workerMenu.fxml b/src/main/resources/com/bib/essensbestellungsverwaltung/workerMenu.fxml new file mode 100644 index 0000000..92368ad --- /dev/null +++ b/src/main/resources/com/bib/essensbestellungsverwaltung/workerMenu.fxml @@ -0,0 +1,111 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+