Skip to content

Commit

Permalink
feat(soffit-pwa): compatible with new form api
Browse files Browse the repository at this point in the history
  • Loading branch information
AliMD committed Feb 3, 2023
1 parent 8936651 commit 29bd85a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions uniquely/soffit-pwa/src/lottery-form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ declare global {
*/
@customElement('alwatr-lottery-form')
export class AlwatrLotteryForm extends AlwatrDummyElement {
static storage = 'lottery';
static formId = 'lottery';

static validSchema: JsonSchema = {
code: String,
Expand Down Expand Up @@ -85,7 +85,7 @@ export class AlwatrLotteryForm extends AlwatrDummyElement {
method: 'PUT',
url: config.api + '/form/',
queryParameters: {
storage: AlwatrLotteryForm.storage,
form: AlwatrLotteryForm.formId,
},
token: config.token,
bodyJson,
Expand Down
2 changes: 1 addition & 1 deletion uniquely/soffit-pwa/src/supply-chain-form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ declare global {
*/
@customElement('alwatr-supply-chain-form')
export class AlwatrSupplyChainForm extends AlwatrLotteryForm {
static override storage = 'supply-chain';
static override formId = 'supply-chain';

static override validSchema: JsonSchema = {
name: String,
Expand Down

0 comments on commit 29bd85a

Please sign in to comment.