Skip to content

Commit

Permalink
feat: add backLabel and nextLabel to controls
Browse files Browse the repository at this point in the history
  • Loading branch information
squigglybob committed Dec 16, 2024
1 parent 5b80ef8 commit ad223ac
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dt-core/admin/components/setup-wizard-controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ export class SetupWizardControls extends OpenLitElement {
return {
translations: { type: Object },
hideBack: { type: Boolean },
backLabel: { type: String },
nextLabel: { type: String },
};
}
back() {
Expand All @@ -20,12 +22,10 @@ export class SetupWizardControls extends OpenLitElement {
${this.hideBack
? ''
: html`
<button @click=${this.back}>
${this.translations?.back ?? 'back'}
</button>
<button @click=${this.back}>${this.backLabel ?? 'back'}</button>
`}
<button @click=${this.next} class="btn-primary">
${this.translations?.next ?? 'next'}
${this.nextLabel ?? 'next'}
</button>
</div>
`;
Expand Down

0 comments on commit ad223ac

Please sign in to comment.