Skip to content

Commit

Permalink
using regexes for this is awesome 😎
Browse files Browse the repository at this point in the history
  • Loading branch information
DrumsnChocolate committed Nov 9, 2024
1 parent 6afa321 commit f32e3c5
Show file tree
Hide file tree
Showing 15 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion app/components/photo-albums/photo.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
{{#if @model.hasExif}}
<button
class='ms-1 btn btn-sm btn-outline-info'
{{action 'toggleShowExif'}}
{{on 'click' toggleShowExif}}
type='button'
>
Toon Exif data
Expand Down
2 changes: 1 addition & 1 deletion app/components/photo-comments/comments.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
/>
<button
class='btn btn-default'
{{action 'submitPhotoComment'}}
{{on 'click' submitPhotoComment}}
type='button'
>
Reageren
Expand Down
8 changes: 4 additions & 4 deletions app/components/poll/closed-question.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -47,21 +47,21 @@
<button
type='button'
class='btn btn-default'
{{action 'moveOptionUp' opt}}
{{on 'click' (fn moveOptionUp opt)}}
>
<FaIcon @icon='arrow-up' />
</button>
<button
type='button'
class='btn btn-default'
{{action 'moveOptionDown' opt}}
{{on 'click' (fn moveOptionDown opt)}}
>
<FaIcon @icon='arrow-down' />
</button>
<button
type='button'
class='btn btn-default'
{{action 'deleteOption' opt}}
{{on 'click' (fn deleteOption opt)}}
>
<FaIcon @icon='trash' />
</button>
Expand All @@ -72,7 +72,7 @@
{{/each}}

{{#unless question.form.hasResponses}}
<button type='button' class='btn btn-default' {{action 'addOption'}}>
<button type='button' class='btn btn-default' {{on 'click' addOption}}>
Optie toevoegen
</button>
{{/unless}}
2 changes: 1 addition & 1 deletion app/components/public/index/activities.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<button
type='button'
class='btn btn-default'
{{action 'closeModal'}}
{{on 'click' closeModal}}
>
{{t 'tag.button.close'}}
</button>
Expand Down
4 changes: 2 additions & 2 deletions app/components/users/otp-settings.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<button
type='button'
class='btn btn-primary float-end'
{{action 'disableOTP'}}
{{on 'click' disableOTP}}
>
Deactiveren
</button>
Expand Down Expand Up @@ -113,7 +113,7 @@
</div>
{{/if}}

<button type='button' class='btn btn-primary' {{action 'generateOTP'}}>
<button type='button' class='btn btn-primary' {{on 'click' generateOTP}}>
Instellen
</button>
{{/if}}
Expand Down
2 changes: 1 addition & 1 deletion app/templates/activities/activity/generate-alias.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<button
type='button'
class='btn btn-danger mb-2'
{{action 'generateAlias'}}
{{on 'click' generateAlias}}
>
Mailalias aanmaken
</button>
Expand Down
2 changes: 1 addition & 1 deletion app/templates/articles/article/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
/>
<button
class='btn btn-default'
{{action 'submitArticleComment'}}
{{on 'click' submitArticleComment}}
type='button'
>
{{t 'tag.button.react'}}
Expand Down
2 changes: 1 addition & 1 deletion app/templates/debit/collections/collection/edit.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
<button
type='button'
class='btn btn-danger'
{{action 'removeTransaction' transaction}}
{{on 'click' (fn removeTransaction transaction)}}
>
<FaIcon @icon='trash' />
</button>
Expand Down
2 changes: 1 addition & 1 deletion app/templates/groups/group/export.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<button
type='button'
class='btn btn-primary mb-3'
{{action 'exportUsers'}}
{{on 'click' exportUsers}}
disabled={{exportButtonDisabled}}
>
Exporteren
Expand Down
2 changes: 1 addition & 1 deletion app/templates/oauth/authorize.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

<button
class='btn btn-primary login-button'
{{action 'authorize'}}
{{on 'click' authorize}}
id='button-login'
type='button'
>
Expand Down
2 changes: 1 addition & 1 deletion app/templates/photo-albums/photo-album/photos/index.hbs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<EmberWormhole @to='navbar-wormhole'>
{{#page-actions-buttons pageActions}}
<div class='col col-md-auto page-action'>
<button class='btn btn-primary' {{action 'downloadAlbum'}} type='button'>
<button class='btn btn-primary' {{on 'click' downloadAlbum}} type='button'>
<FaIcon @icon='download' />
<span class='d-none d-md-inline'>Fotoalbum downloaden</span>
</button>
Expand Down
4 changes: 2 additions & 2 deletions app/templates/photo-albums/photo-album/photos/photo/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
<div class='col col-md-auto page-action'>
<button
class='btn btn-primary'
{{action 'goToPreviousPhoto'}}
{{on 'click' goToPreviousPhoto}}
type='button'
>
<FaIcon @icon='arrow-left' />
</button>
</div>
<div class='col col-md-auto page-action'>
<button class='btn btn-primary' {{action 'goToNextPhoto'}} type='button'>
<button class='btn btn-primary' {{on 'click' goToNextPhoto}} type='button'>
<FaIcon @icon='arrow-right' />
</button>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/templates/sog/name-trainer.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
<button
type='button'
class='btn btn-primary'
{{action 'checkAnswer'}}
{{on 'click' checkAnswer}}
>
Antwoord
</button>
Expand Down
2 changes: 1 addition & 1 deletion app/templates/users/batch/new.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
<button
type='button'
class='btn btn-secondary btn-inline ms-3'
{{action 'confirmUpload'}}
{{on 'click' confirmUpload}}
name='confirmUpload'
disabled={{if importErrors true false}}
>
Expand Down
2 changes: 1 addition & 1 deletion app/templates/users/webdav.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@

<button
class='btn btn-primary'
{{action 'generateWebdavSecret'}}
{{on 'click' generateWebdavSecret}}
type='button'
>
Contactsynchronisatie activeren
Expand Down

0 comments on commit f32e3c5

Please sign in to comment.