-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GN-4159 - Feature/create revoke signature button #442
Conversation
Should solve https://binnenland.atlassian.net/browse/GN-4158 and https://binnenland.atlassian.net/browse/GN-4159, it needs the PR lblod/notulen-prepublish-service#101 and lblod/app-gelinkt-notuleren#150 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why all the model.get
calls? that method is deprecated in ED 4.x, and even before it was not "supposed" to be used.
not tested, since this PR broke the signing button, but that could be something with my setup
I reproduced the second issue (people present at voting don't load) when upgrading to ember-data 4.8, but I fixed it in that PR. I could not reproduce the error on ember data 3.28.13. The main issue was that the relation of people present at the meeting was not correctly awaited. |
I was also able to reproduce the same issue, it only shows the toggle again after a full manual refresh. Will check if it occurs on master too. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to work well overall. The new publication actions page works as expected.
I could also reproduce some issues @nvdk noticed, including:
- the
make public
toggles no longer show up after signing notulen, they only show up after a manual browser refresh
I had no issues with removing a signature, signing out, signing in and adding a signature again.
The issue with the toggles not being displayed is because the {{#in-element this.containerElement}}
<Signatures::Notulen::BehandelingenList
@notulen={{this.notulen}}
@prepublishedBehandelingen={{this.treatments}}
@publicBehandelingUris={{this.publicBehandelingUris}}
@toggle={{this.togglePublicationStatus}}
@toggleAll={{this.toggleAllPublicationStatus}}
@allBehandelingPublic={{this.allBehandelingPublic}}
/>
{{/in-element}}
|
The issues is that the get containerElement() {
if (this.loadNotulen.isIdle) {
return document.getElementById(this.behandelingContainerId);
} else {
return null;
}
} should work. Not super clean, but it ensures that containerElement is tracked each time the loading state changes. |
@elpoelma wouldn't just making |
The issue is that |
ah right 😅 |
So your suggestion works @elpoelma but I have no idea why since that whole block is already in an if-block that conditionally renders on the loadNotulen idle state |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good to go now :)
No description provided.