Skip to content

Commit

Permalink
chore: yarn format
Browse files Browse the repository at this point in the history
  • Loading branch information
SychO9 committed Nov 5, 2023
1 parent 29fd5a9 commit 674fdd3
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions js/src/admin/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,22 @@ app.initializers.add('sycho/flarum-force-password-reset', () => {
icon="fas fa-key"
onclick={() => {
if (confirm(extractText(app.translator.trans('sycho-force-password-reset.admin.force_password_reset.reset_all_confirm')))) {
app.request({
method: 'POST',
url: app.forum.attribute('apiUrl') + '/force-password-reset',
}).then(() => app.alerts.show({
type: 'success',
}, app.translator.trans('sycho-force-password-reset.admin.force_password_reset.reset_all_success')));
app
.request({
method: 'POST',
url: app.forum.attribute('apiUrl') + '/force-password-reset',
})
.then(() =>
app.alerts.show(
{
type: 'success',
},
app.translator.trans('sycho-force-password-reset.admin.force_password_reset.reset_all_success')
)
);
}
}}>
}}
>
{app.translator.trans('sycho-force-password-reset.admin.force_password_reset.button_label')}
</Button>
</div>
Expand Down

0 comments on commit 674fdd3

Please sign in to comment.