mirror of
https://github.com/klmp200/PQT_Gestionnaire_vente_stock.git
synced 2024-11-22 08:13:20 +00:00
[CLIENT] #22 : Lors de la connexion/reconnexion, la vue des module est désormais toujours vide
This commit is contained in:
parent
85972092f8
commit
2db2456d2b
@ -19,6 +19,7 @@ class MainFrameController implements IMainFrameModelListener {
|
|||||||
|
|
||||||
void updateView(){
|
void updateView(){
|
||||||
view.setCurrentAccount(model.getCurrentAccount());
|
view.setCurrentAccount(model.getCurrentAccount());
|
||||||
|
view.clearModuleView();
|
||||||
if(model.getCurrentAccount()!=null)
|
if(model.getCurrentAccount()!=null)
|
||||||
view.updateModuleButtonLock(model.getCurrentAccount().getPermissionLevel());
|
view.updateModuleButtonLock(model.getCurrentAccount().getPermissionLevel());
|
||||||
else
|
else
|
||||||
|
@ -121,4 +121,8 @@ class MainFrameView implements IFXComponent{
|
|||||||
void updateModuleButtonLock(AccountLevel level) {
|
void updateModuleButtonLock(AccountLevel level) {
|
||||||
currentAccountLevel.setValue(level);
|
currentAccountLevel.setValue(level);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void clearModuleView() {
|
||||||
|
mainPane.setCenter(null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user