Skip to content

Commit

Permalink
♻️ certif: clean parameters buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreiaPena committed Nov 5, 2024
1 parent 148ecea commit cbeae7b
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions certif/app/templates/authenticated/sessions/details/parameters.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,14 @@
</div>

<div class="session-details-buttons">
<PixButtonLink
@route="authenticated.sessions.update"
@model={{this.session.id}}
aria-label={{t "pages.sessions.detail.parameters.actions.update" sessionId=this.session.id}}
>
{{t "common.actions.update"}}
</PixButtonLink>
{{#if this.sessionHasStarted}}
<PixButtonLink @route="authenticated.sessions.update" @model={{this.session.id}}>
{{t "common.actions.update"}}
</PixButtonLink>
{{#if this.sessionManagement.isFinalized}}
<p class="session-details-row__session-finalized-warning">
{{t "pages.sessions.detail.parameters.finalization-info"}}
Expand All @@ -134,14 +138,6 @@
{{t "pages.sessions.detail.parameters.actions.finalizing"}}
</PixButtonLink>
{{/if}}
{{else}}
<PixButtonLink
@route="authenticated.sessions.update"
@model={{this.session.id}}
aria-label={{t "pages.sessions.detail.parameters.actions.update" sessionId=this.session.id}}
>
{{t "common.actions.update"}}
</PixButtonLink>
{{/if}}
</div>

Expand Down

0 comments on commit cbeae7b

Please sign in to comment.