mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-08 15:25:01 -04:00
[#181] update opListCreate to desktopOpListCreate ( to always include drag events and popovers ) and the inverse for mobile. Now it is ready for window resizing
This commit is contained in:
parent
c6cc998100
commit
89c1ab12ab
4 changed files with 30 additions and 13 deletions
|
@ -889,14 +889,13 @@ class App {
|
|||
*/
|
||||
setDesktopUI(minimise){
|
||||
this.setDesktopLayout(minimise);
|
||||
|
||||
// repopulate to enable popovers and drag events
|
||||
this.populateOperationsList();
|
||||
/**
|
||||
* We don't want to display any checkmarks on desktop, so we clear them.
|
||||
* It has no effect on the recipe list, it's purely a visual indicator
|
||||
*/
|
||||
this.manager.recipe.clearAllSelectedClasses();
|
||||
|
||||
// @TODO: handle sortable, draggable, popovers functionality. Works fine on init but needs to work on window resizing too
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -906,10 +905,10 @@ class App {
|
|||
*/
|
||||
setMobileUI(){
|
||||
this.setMobileLayout();
|
||||
// on window resizing below breakpoint, we need to put the checkmarks back
|
||||
// repopulate to disable popovers and drag events
|
||||
this.populateOperationsList();
|
||||
// restore the appropriate checkmarks
|
||||
this.manager.recipe.updateSelectedOperations();
|
||||
|
||||
// @TODO: handle sortable, draggable, popovers functionality. Works fine on init but needs to work on window resizing too
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue