mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-15 02:26:54 -04:00
Add swap inputs feature
This commit is contained in:
parent
d3e3e6e6fc
commit
88c7843924
12 changed files with 78 additions and 16 deletions
|
@ -24,6 +24,7 @@ class Operation {
|
|||
this._disabled = false;
|
||||
this._flowControl = false;
|
||||
this._manualBake = false;
|
||||
this._inputSwapable = false;
|
||||
this._ingList = [];
|
||||
|
||||
// Public fields
|
||||
|
@ -316,6 +317,25 @@ class Operation {
|
|||
this._manualBake = !!value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if this Operation has swapable input values.
|
||||
*
|
||||
* @returns {boolean}
|
||||
*/
|
||||
get inputSwapable() {
|
||||
return this._inputSwapable;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Set whether this Operation shoud show swap input icon.
|
||||
*
|
||||
* @param {boolean} value
|
||||
*/
|
||||
set inputSwapable(value) {
|
||||
this._inputSwapable = !!value;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export default Operation;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue