Skip to content

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
nvdk committed Mar 30, 2022
2 parents 65dafd4 + b54c9f4 commit 51092d8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 4 additions & 2 deletions app/controllers/meetings/publish/notulen.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,10 @@ export default class MeetingsPublishNotulenController extends Controller {
this.notulen = rslt;
this.errors = errors;
}
const treatments = yield this.fetchTreatments.perform();
this.treatments = treatments;
if (this.status !== 'published') {
const treatments = yield this.fetchTreatments.perform();
this.treatments = treatments;
}
}

@task
Expand Down
6 changes: 5 additions & 1 deletion app/templates/meetings/publish/notulen.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@
{{#if this.loadNotulen.isIdle}}
{{!-- cheating with status here, because signing doesn't affect preview --}}
<PublicationPreview @title="Voorvertoning notulen" @status={{if (eq this.status "published") "published" "concept"}}>
{{html-safe this.zittingWrapper}}
{{#if (eq this.status 'published')}}
{{html-safe this.notulen.content}}
{{else}}
{{html-safe this.zittingWrapper}}
{{/if}}
{{#if this.showPublicToggles}}
{{#in-element this.containerElement}}
<Signatures::Notulen::BehandelingenList
Expand Down

0 comments on commit 51092d8

Please sign in to comment.