Skip to content

Commit

Permalink
fix(soffit): localization bug
Browse files Browse the repository at this point in the history
  • Loading branch information
alimd committed Feb 6, 2023
1 parent fd9d485 commit 2134efb
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions uniquely/soffit-pwa/src/lottery-form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,21 @@ declare global {
export class AlwatrLotteryForm extends LocalizeMixin(AlwatrSmartElement) {
static formId = 'lottery';

@state() protected _radioGroupContent: RadioGroupOptions = {
name: 'activity',
form: (this.constructor as typeof AlwatrLotteryForm).formId,
title: message('activity_type'),
radioGroup: [
{label: message('tile_player')},
{label: message('tile_installer')},
{label: message('seller_shopkeeper')},
{label: message('contractor')},
{label: message('manufacturer')},
{label: message('other')},
],
};
get _radioGroupOptions(): RadioGroupOptions {
return {
name: 'activity',
form: (this.constructor as typeof AlwatrLotteryForm).formId,
title: message('activity_type'),
radioGroup: [
{label: message('tile_player')},
{label: message('tile_installer')},
{label: message('seller_shopkeeper')},
{label: message('contractor')},
{label: message('manufacturer')},
{label: message('other')},
],
};
}

static override styles = css`
:host {
Expand Down Expand Up @@ -133,7 +135,7 @@ export class AlwatrLotteryForm extends LocalizeMixin(AlwatrSmartElement) {
stated
placeholder=${message('phone_number')}
></alwatr-text-field>
<alwatr-radio-group .options=${this._radioGroupContent}></alwatr-radio-group>
<alwatr-radio-group .options=${this._radioGroupOptions}></alwatr-radio-group>
<div class="button-container">
<alwatr-button outlined @click=${this.submit}>${message('submit_form')}</alwatr-button>
<alwatr-button @click=${this.cancel}>${message('cancel')}</alwatr-button>
Expand Down

0 comments on commit 2134efb

Please sign in to comment.