- fix swappable typo

This commit is contained in:
Patrick Lekaj 2019-08-26 00:16:18 +02:00
parent 431175f195
commit 51b5efbae7
8 changed files with 14 additions and 14 deletions

View file

@ -24,7 +24,7 @@ class Operation {
this._disabled = false;
this._flowControl = false;
this._manualBake = false;
this._inputSwapable = false;
this._inputSwappable = false;
this._ingList = [];
// Public fields
@ -318,12 +318,12 @@ class Operation {
}
/**
* Returns true if this Operation has swapable input values.
* Returns true if this Operation has swappable input values.
*
* @returns {boolean}
*/
get inputSwapable() {
return this._inputSwapable;
get inputSwappable() {
return this._inputSwappable;
}
@ -332,8 +332,8 @@ class Operation {
*
* @param {boolean} value
*/
set inputSwapable(value) {
this._inputSwapable = !!value;
set inputSwappable(value) {
this._inputSwappable = !!value;
}
}

View file

@ -41,7 +41,7 @@ for (const opObj in Ops) {
inputType: op.inputType,
outputType: op.presentType,
flowControl: op.flowControl,
inputSwapable: op.inputSwapable,
inputSwappable: op.inputSwappable,
manualBake: op.manualBake,
args: op.args
};

View file

@ -77,7 +77,7 @@ If your operation does not rely on a library, just leave this blank and it will
required: true,
message: `The output type should be one of: ${ioTypes.join(", ")}.`
},
inputSwapable: {
inputSwappable: {
description: "Input swappable option shows an icon that can swap input values of two ingredients.",
example: "true/false",
prompt: "Show input swaping",
@ -158,7 +158,7 @@ class ${moduleName} extends Operation {
this.infoURL = "${result.infoURL}";
this.inputType = "${result.inputType}";
this.outputType = "${result.outputType}";
this.inputSwapable = "${result.inputSwapable}";
this.inputSwappable = "${result.inputSwappable}";
this.args = [
/* Example arguments. See the project wiki for full details.
{

View file

@ -23,7 +23,7 @@ class ConvertArea extends Operation {
this.infoURL = "https://wikipedia.org/wiki/Orders_of_magnitude_(area)";
this.inputType = "BigNumber";
this.outputType = "BigNumber";
this.inputSwapable = true;
this.inputSwappable = true;
this.args = [
{
"name": "Input units",

View file

@ -23,7 +23,7 @@ class ConvertDataUnits extends Operation {
this.infoURL = "https://wikipedia.org/wiki/Orders_of_magnitude_(data)";
this.inputType = "BigNumber";
this.outputType = "BigNumber";
this.inputSwapable = true;
this.inputSwappable = true;
this.args = [
{
"name": "Input units",

View file

@ -23,7 +23,7 @@ class ConvertDistance extends Operation {
this.infoURL = "https://wikipedia.org/wiki/Orders_of_magnitude_(length)";
this.inputType = "BigNumber";
this.outputType = "BigNumber";
this.inputSwapable = true;
this.inputSwappable = true;
this.args = [
{
"name": "Input units",

View file

@ -23,7 +23,7 @@ class ConvertMass extends Operation {
this.infoURL = "https://wikipedia.org/wiki/Orders_of_magnitude_(mass)";
this.inputType = "BigNumber";
this.outputType = "BigNumber";
this.inputSwapable = true;
this.inputSwappable = true;
this.args = [
{
"name": "Input units",

View file

@ -23,7 +23,7 @@ class ConvertSpeed extends Operation {
this.infoURL = "https://wikipedia.org/wiki/Orders_of_magnitude_(speed)";
this.inputType = "BigNumber";
this.outputType = "BigNumber";
this.inputSwapable = true;
this.inputSwappable = true;
this.args = [
{
"name": "Input units",