Skip to content

Commit

Permalink
Fix submit button text in Create User modal
Browse files Browse the repository at this point in the history
  • Loading branch information
rmunn committed May 13, 2024
1 parent efd1699 commit 77c5853
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion frontend/src/lib/components/Users/CreateUser.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
export let autoLogin = true;
export let onSubmit: (() => void) | undefined = undefined;
export let submitButtonText = $t('register.button_register');
type RegisterPageQueryParams = {
name: string;
Expand Down Expand Up @@ -80,7 +81,7 @@
bind:value={$form.locale}
/>
<FormError error={$message} />
<SubmitButton loading={$submitting}>{$t('register.button_register')}</SubmitButton>
<SubmitButton loading={$submitting}>{submitButtonText}</SubmitButton>
</ProtectedForm>

<style lang="postcss">
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/lib/components/Users/CreateUserModal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@
<Markdown md={$t('admin_dashboard.create_user_modal.help_create_single_guest_user', helpLinks)} plugins={[{ renderer: { a: NewTabLinkRenderer } }]} />
<Markdown md={$t('admin_dashboard.create_user_modal.help_create_bulk_guest_users', helpLinks)} plugins={[{ renderer: { a: NewTabLinkRenderer } }]} />
<h1 class="text-center text-xl">{$t('admin_dashboard.create_user_modal.create_user')}</h1>
<CreateUser autoLogin={false} onSubmit={() => createUserModal.submitModal()} />
<CreateUser autoLogin={false} onSubmit={() => createUserModal.submitModal()} submitButtonText={$t('admin_dashboard.create_user_modal.create_user')} />
</Modal>

0 comments on commit 77c5853

Please sign in to comment.