Skip to content

Commit

Permalink
Defect: Option name can't be set (#235)
Browse files Browse the repository at this point in the history
  • Loading branch information
misterpotts authored Nov 17, 2023
1 parent e9bbac8 commit 07f041a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/_config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
title: Fabricate 0.10.15
title: Fabricate 0.10.16
email: [email protected]
description: >-
End user documentation for the Foundry Virtual Tabletop (VTT) Module, "Fabricate".
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fabricate",
"version": "0.10.15",
"version": "0.10.16",
"description": "A system-agnostic, flexible crafting module for FoundryVT",
"main": "index.js",
"type": "module",
Expand Down
10 changes: 9 additions & 1 deletion src/scripts/common/Options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export {Option}
class DefaultOption<T> implements Option<T> {

private readonly _id: string;
private readonly _name: string;
private _name: string;
private readonly _value: T;

constructor({
Expand Down Expand Up @@ -94,6 +94,10 @@ class DefaultOption<T> implements Option<T> {
return this._value;
}

set name(name: string) {
this._name = name;
}

clone(id: string): Option<T> {
return new DefaultOption<T>({
id,
Expand Down Expand Up @@ -154,6 +158,10 @@ class DefaultSerializableOption<J, T extends Serializable<J>> implements Seriali
return this._option.value;
}

set name(name: string) {
this._option.name = name;
}

public toJson(): OptionJson<J> {
return {
id: this.id,
Expand Down

0 comments on commit 07f041a

Please sign in to comment.