Skip to content

Commit

Permalink
Fix some appuniversum deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
piemonkey committed Apr 12, 2024
1 parent 43e33d6 commit 61a90dd
Show file tree
Hide file tree
Showing 16 changed files with 44 additions and 39 deletions.
5 changes: 5 additions & 0 deletions .changeset/five-queens-lay.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"frontend-gelinkt-notuleren": patch
---

Fix some deprecation warnings from appuniversum
4 changes: 2 additions & 2 deletions app/components/agenda-manager/agenda-table/empty.hbs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<tr>
<td colspan="4">
<AuHelpText @size="normal" @skin="tertiary">
<AuHelpText @size="normal" @skin="link">
{{t "manage-agenda-zitting-modal.no-data-message"}}
</AuHelpText>
</td>
</tr>
</tr>
4 changes: 2 additions & 2 deletions app/components/agenda-manager/agenda-table/row.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
{{else}}
<DraggableObject @tagName="tr" @content={{@item}} @isSortable={{true}}>
<td>
<AuButton @icon="drag" @skin="tertiary" @hideText={{true}} class="au-c-button--drag"></AuButton>
<AuButton @icon="drag" @skin="link" @hideText={{true}} class="au-c-button--drag"></AuButton>
</td>
<td>
<p>{{limit-content @item.titel 40}}</p>
Expand All @@ -31,7 +31,7 @@
(t "manage-agenda-zitting-modal.gepland-openbaar-false-label")}}
</td>
<td class="au-u-table-right">
<AuButton @skin="tertiary" @icon="pencil" @iconAlignment="left" {{on "click" @edit}}>
<AuButton @skin="link" @icon="pencil" @iconAlignment="left" {{on "click" @edit}}>
{{t "manage-agenda-zitting-modal.edit-item-button"}}
</AuButton>
</td>
Expand Down
4 changes: 2 additions & 2 deletions app/components/delete-meeting.hbs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{#if this.visible}}
<AuButton {{on "click" (fn (mut this.displayDeleteModal) true)}} @skin="tertiary" @alert="true" role="menuitem">
<AuButton {{on "click" (fn (mut this.displayDeleteModal) true)}} @skin="link" @alert="true" role="menuitem">
<AuIcon @icon="bin" @alignment="left" />
{{t "meetings.delete.delete"}}
</AuButton>
Expand All @@ -17,4 +17,4 @@
</Modal.Footer>
</AuModal>
{{/if}}
{{/if}}
{{/if}}
4 changes: 2 additions & 2 deletions app/components/document-attachments.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<AuToggleSwitch @label={{t "attachments.regulatory"}} @checked={{eq attachment.type.id this.regulatoryTypeId}} @onChange={{perform this.updateAttachmentIsRegulatory attachment}} />
</td>
<td class="au-u-text-right">
<AuButton @skin="tertiary" @alert={{true}} @icon="bin" @iconAlignment="left" {{on "click" (perform this.deleteAttachment attachment)}}>
<AuButton @skin="link" @alert={{true}} @icon="bin" @iconAlignment="left" {{on "click" (perform this.deleteAttachment attachment)}}>
{{t "attachments.delete"}}
</AuButton>
</td>
Expand All @@ -60,4 +60,4 @@
<p>{{t "attachments.decision-required"}}</p>
</AuAlert>
</AuToolbar>
{{/unless}}
{{/unless}}
8 changes: 4 additions & 4 deletions app/components/editor-document-title.hbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{#if @readOnly}}
<h1 class="au-c-app-chrome__title" title={{this.title}}>
{{limit-content this.title 70}}
{{limit-content this.title 70}}
</h1>
{{else}}
{{#if this.active}}
Expand Down Expand Up @@ -33,8 +33,8 @@
</form>
{{else}}
<h1 class="au-c-app-chrome__title au-c-app-chrome__title--edit" title={{this.title}}>
{{limit-content this.title 70}}
<AuButton {{on "click" this.enableEdit}} @icon="pencil" @skin="tertiary" @hideText={{true}} >{{t "editor-document-title.change-title"}}</AuButton>
{{limit-content this.title 70}}
<AuButton {{on "click" this.enableEdit}} @icon="pencil" @skin="link" @hideText={{true}} >{{t "editor-document-title.change-title"}}</AuButton>
</h1>
{{#if this.showIsSavedTask.isRunning}}
<AuPill
Expand All @@ -46,4 +46,4 @@
{{/if}}
{{/if}}

{{/if}}
{{/if}}
6 changes: 3 additions & 3 deletions app/components/manage-intermissions/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
<td>{{intermission.comment}}</td>
<td class="au-u-table-right">
{{#unless @readOnly}}
<AuButton @skin="tertiary" @icon="pencil" @iconAlignment="left" {{on "click" (fn this.editIntermission intermission)}}>
<AuButton @skin="link" @icon="pencil" @iconAlignment="left" {{on "click" (fn this.editIntermission intermission)}}>
{{t "manage-intermissions.edit-label"}}
</AuButton>
{{/unless}}
Expand All @@ -63,7 +63,7 @@
{{else}}
<tr>
<td colspan="4">
<AuHelpText @size="normal" @skin="tertiary">
<AuHelpText @size="normal" @skin="link">
{{t "manage-intermissions.no-data-message"}}
</AuHelpText>
</td>
Expand All @@ -78,4 +78,4 @@
@visible={{this.showModal}}
@onClose={{this.closeEdit}}
/>
</div>
</div>
8 changes: 4 additions & 4 deletions app/components/treatment/voting/modal.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
{{#if stemming.onderwerp}}
{{stemming.onderwerp}}
{{else}}
<AuHelpText @size="normal" @skin="tertiary">
<AuHelpText @size="normal" @skin="link">
{{t "voting-modal.subject-not-found"}}
</AuHelpText>
{{/if}}
Expand Down Expand Up @@ -78,7 +78,7 @@
{{#if stemming.gevolg}}
{{stemming.gevolg}}
{{else}}
<AuHelpText @size="normal" @skin="tertiary">{{t "voting-modal.gevolg-not-found"}}</AuHelpText>
<AuHelpText @size="normal" @skin="link">{{t "voting-modal.gevolg-not-found"}}</AuHelpText>
{{/if}}
</td>
{{#unless @readOnly}}
Expand Down Expand Up @@ -109,12 +109,12 @@
{{else}}
<tr>
<td colspan="5">
<AuHelpText @size="normal" @skin="tertiary">
<AuHelpText @size="normal" @skin="link">
{{t "voting-modal.no-data-message"}}
</AuHelpText>
</td>
</tr>
{{/each}}
{{/if}}
</tbody>
</table>
</table>
6 changes: 3 additions & 3 deletions app/templates/agendapoints/edit.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,19 @@
{{! template-lint-disable require-context-role }}
<AuButton
{{on 'click' (perform this.copyAgendapunt)}}
@skin='tertiary'
@skin='link'
role='menuitem'
>
<AuIcon @icon='copy' @alignment='left' />
{{t 'app-chrome.copy-agendapoint'}}
</AuButton>
<AuButton {{on 'click' this.download}} @skin='tertiary' role='menuitem'>
<AuButton {{on 'click' this.download}} @skin='link' role='menuitem'>
<AuIcon @icon='export' @alignment='left' />
{{t 'utils.html-export'}}
</AuButton>
<AuButton
{{on 'click' this.toggleDeleteModal}}
@skin='tertiary'
@skin='link'
@alert='true'
role='menuitem'
@disabled={{this.isNotAllowedToTrash}}
Expand Down
4 changes: 2 additions & 2 deletions app/templates/agendapoints/revisions.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<AgendapointMenu @documentContainer={{this.documentContainer}} />
<AuDropdown @title={{t "utils.file-options"}} @buttonLabel={{t "utils.file-options"}} @alignment="right">
{{!-- template-lint-disable require-context-role --}}
<AuButton {{on "click" this.download}} @skin="tertiary" role="menuitem">
<AuButton {{on "click" this.download}} @skin="link" role="menuitem">
<AuIcon @icon="export" @alignment="left" />
{{t "utils.html-export"}}
</AuButton>
Expand Down Expand Up @@ -92,4 +92,4 @@
<AuButton @skin="secondary" {{on "click" this.cancelConfirmRevisionsToRemove}}>{{t "participation-list-modal.cancel-button"}}</AuButton>
</AuButtonGroup>
</Modal.Footer>
</AuModal>
</AuModal>
6 changes: 3 additions & 3 deletions app/templates/agendapoints/show.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
<AuDropdown @title={{t "utils.file-options"}} @buttonLabel={{t "utils.file-options"}} @alignment="right">
{{!-- template-lint-disable require-context-role --}}
{{#unless this.readOnly}}
<AuButton {{on "click" (perform this.copyAgendapunt)}} @skin="tertiary" role="menuitem">
<AuButton {{on "click" (perform this.copyAgendapunt)}} @skin="link" role="menuitem">
<AuIcon @icon="copy" @alignment="left" />
{{t "app-chrome.copy-agendapoint"}}
</AuButton>
{{/unless}}
<AuButton {{on "click" this.download}} @skin="tertiary" role="menuitem">
<AuButton {{on "click" this.download}} @skin="link" role="menuitem">
<AuIcon @icon="export" @alignment="left" />
{{t "utils.html-export"}}
</AuButton>
Expand Down Expand Up @@ -61,4 +61,4 @@
</div>


{{outlet}}
{{outlet}}
4 changes: 2 additions & 2 deletions app/templates/irg-archive/show.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<:actions>
<AuDropdown @title={{t "utils.file-options"}} @buttonLabel={{t "utils.file-options"}} @alignment="right">
{{!-- template-lint-disable require-context-role --}}
<AuButton {{on "click" this.download}} @skin="tertiary" role="menuitem">
<AuButton {{on "click" this.download}} @skin="link" role="menuitem">
<AuIcon @icon="export" @alignment="left" />
{{t "utils.html-export"}}
</AuButton>
Expand All @@ -39,4 +39,4 @@
</div>
</div>
</div>
</div>
</div>
2 changes: 1 addition & 1 deletion app/templates/regulatory-statements/edit.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
@alignment='right'
>
{{! template-lint-disable require-context-role }}
<AuButton {{on 'click' this.download}} @skin='tertiary' role='menuitem'>
<AuButton {{on 'click' this.download}} @skin='link' role='menuitem'>
<AuIcon @icon='export' @alignment='left' />
{{t 'utils.html-export'}}
</AuButton>
Expand Down
4 changes: 2 additions & 2 deletions app/templates/regulatory-statements/revisions.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<:actions>
<AuDropdown @title={{t "utils.file-options"}} @buttonLabel={{t "utils.file-options"}} @alignment="right">
{{!-- template-lint-disable require-context-role --}}
<AuButton {{on "click" this.download}} @skin="tertiary" role="menuitem">
<AuButton {{on "click" this.download}} @skin="link" role="menuitem">
<AuIcon @icon="export" @alignment="left"/>
{{t "utils.html-export"}}
</AuButton>
Expand Down Expand Up @@ -84,4 +84,4 @@
</div>


{{outlet}}
{{outlet}}
12 changes: 6 additions & 6 deletions app/templates/regulatory-statements/show.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<:actions>
<AuDropdown @title={{t "utils.file-options"}} @buttonLabel={{t "utils.file-options"}} @alignment="right">
{{!-- template-lint-disable require-context-role --}}
<AuButton {{on "click" this.download}} @skin="tertiary" role="menuitem">
<AuButton {{on "click" this.download}} @skin="link" role="menuitem">
<AuIcon @icon="export" @alignment="left" />
{{t "utils.html-export"}}
</AuButton>
Expand All @@ -52,10 +52,10 @@
</:actions>
</AppChrome>

<div
class="au-c-body-container"
{{did-update (perform this.fetchRevisions)}}
{{did-insert (perform this.fetchRevisions)}}
<div
class="au-c-body-container"
{{did-update (perform this.fetchRevisions)}}
{{did-insert (perform this.fetchRevisions)}}
>
<div class="au-c-rdfa-editor">
<div class="say-container say-container--sidebar-left say-container--paper say-container--sidebar-right">
Expand All @@ -80,4 +80,4 @@
</div>


{{outlet}}
{{outlet}}
2 changes: 1 addition & 1 deletion config/environment.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = function (environment) {
modulePrefix: 'frontend-gelinkt-notuleren',
environment,
rootURL: '/',
locationType: 'auto',
locationType: 'history',
regulatoryStatementEndpoint: '{{REGULATORY_STATEMENT_ENDPOINT}}',
regulatoryStatementFileEndpoint: '{{REGULATORY_STATEMENT_FILE_ENDPOINT}}',
mowRegistryEndpoint: '{{MOW_REGISTRY_ENDPOINT}}',
Expand Down

0 comments on commit 61a90dd

Please sign in to comment.