Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion app/controllers/eredienst-mandatenbeheer/mandatarissen.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { tracked } from '@glimmer/tracking';
import { restartableTask, timeout } from 'ember-concurrency';

const NO_PROVENANCE_VENDOR_ID = 'none';
const VANDEN_BROELE_VENDOR_ID = 'b1e41693-639a-4f61-92a9-5b9a3e0b924e';

export default class EredienstMandatenbeheerMandatarissenController extends Controller {
@service() router;
Expand All @@ -28,7 +29,7 @@ export default class EredienstMandatenbeheerMandatarissenController extends Cont
// (store.query('vendor', { page: { size: 100 }, sort: 'name' })) instead.
vendorOptions = [
{ id: NO_PROVENANCE_VENDOR_ID, name: 'Loket lokale besturen' },
{ id: 'b1e41693-639a-4f61-92a9-5b9a3e0b924e', name: 'Vanden Broele' },
{ id: VANDEN_BROELE_VENDOR_ID, name: 'Vanden Broele' },
];

get selectedVendor() {
Expand Down
8 changes: 7 additions & 1 deletion app/templates/eredienst-mandatenbeheer/mandatarissen.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,13 @@
}}</td>
<td>{{if row.provenance.name row.provenance.name "Loket voor lokale besturen"}}</td>
<td>
{{#if this.currentSession.hasViewOnlyWorshipMandateesManagementData}}
{{! Fixing mixed situations, hence the OR. TODO: maybe rethink the view only mode }}
{{#if
(or
this.currentSession.hasViewOnlyWorshipMandateesManagementData
row.provenance.id
)
}}
<AuLink
@route="eredienst-mandatenbeheer.mandataris.details"
@model={{row.id}}
Expand Down