mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-11 08:41:32 -04:00
[#181] add
This commit is contained in:
parent
f1257ea356
commit
5362f9fda4
9 changed files with 48 additions and 23 deletions
|
@ -451,7 +451,7 @@ ${navigator.userAgent}
|
|||
pane.style.height = `${window.innerHeight - 40}px`;
|
||||
} else {
|
||||
if ( window.innerWidth < this.app.breakpoint ){
|
||||
this.app.divideAvailableSpace();
|
||||
this.app.assignAvailableHeight();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -325,7 +325,7 @@ class OperationsWaiter {
|
|||
* Open operations dropdown
|
||||
*/
|
||||
openOperationsDropdown(){
|
||||
// 'close' ( dropdown ) icon in Operations component mobile UI
|
||||
// the 'close' ( dropdown ) icon in Operations component mobile UI
|
||||
const closeOperationsDropdown = document.getElementById("close-operations-dropdown");
|
||||
const categories = document.getElementById("categories");
|
||||
|
||||
|
@ -373,7 +373,15 @@ class OperationsWaiter {
|
|||
*/
|
||||
resetFavouritesClick() {
|
||||
this.app.resetFavourites();
|
||||
this.manager.recipe.updateSelectedOperations();
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a favourite op, for mobile UI only
|
||||
*
|
||||
* @param {Event} e
|
||||
*/
|
||||
onIconFavouriteClick(e){
|
||||
this.app.addFavourite(e.target.getAttribute("title"));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -658,7 +658,7 @@ class RecipeWaiter {
|
|||
* Note: It seems a little overkill, but with the current tightly coupled code this is
|
||||
* a reliable way to make sure the 'selected' operations are always in sync with
|
||||
* the recipe list ( I think this is preferable to complicating a lot of existing
|
||||
* code ), I'd recommend to refactor this at one point, but that will mean a huge code
|
||||
* code ), I'd recommend to refactor this at one point, but that would mean a huge code
|
||||
* overhaul for another time / issue.
|
||||
*/
|
||||
updateSelectedOperations(){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue