mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-08 15:25:01 -04:00
[#181] disable popovers on mobile UI on init and resizing events
This commit is contained in:
parent
a252c34968
commit
4a761673c0
6 changed files with 42 additions and 9 deletions
|
@ -878,6 +878,29 @@ class App {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Aggregate all the desktop UI functions.
|
||||
*
|
||||
* Popovers and desktop layout are set on init, but we also need to
|
||||
* update the UI correctly on window resizing events
|
||||
*/
|
||||
setDesktopUI(minimise){
|
||||
this.setDesktopLayout(minimise);
|
||||
this.manager.ops.enableOpsListPopovers();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Aggregate all the mobile UI functions.
|
||||
*
|
||||
* Popovers and desktop layout are set on init, but we also need to
|
||||
* update the UI correctly on window resizing events
|
||||
*/
|
||||
setMobileUI(){
|
||||
this.setMobileLayout();
|
||||
this.manager.ops.disableOpsListPopovers();
|
||||
}
|
||||
}
|
||||
|
||||
export default App;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue