-
Notifications
You must be signed in to change notification settings - Fork 269
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
[AAE-4427] Embed upload progress dialog inside the upload from your d… #6575
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #6575 +/- ##
===========================================
+ Coverage 76.27% 77.86% +1.59%
===========================================
Files 871 356 -515
Lines 19654 9773 -9881
Branches 3917 1977 -1940
===========================================
- Hits 14991 7610 -7381
+ Misses 3468 1552 -1916
+ Partials 1195 611 -584
Continue to review full report at Codecov.
|
924f858
to
d104ad3
Compare
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.
please do not change the input property
lib/content-services/src/lib/document-list/data/share-datatable-adapter.ts
Outdated
Show resolved
Hide resolved
lib/content-services/src/lib/document-list/data/share-datatable-adapter.ts
Outdated
Show resolved
Hide resolved
lib/content-services/src/lib/document-list/data/share-datatable-adapter.ts
Outdated
Show resolved
Hide resolved
b587950
to
46679d1
Compare
} | ||
|
||
onPreselectNodes() { | ||
if (this.hasPreselectNodes()) { | ||
const preselectedNodes = [...this.isSingleSelectionMode() ? [this.data.getPreselectRows()[0]] : this.data.getPreselectRows()]; | ||
if (this.data.hasPreselectedRows()) { |
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.
this is changing the behaviour...compared to the previous code, are we sure ?
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.
To be honest I believe this is the right thing to do because in the next lines we access the this.data.getPreselectedRows()[0] or this.data.getPreselectedRows()
based on if the selection is single or multiple as you can see in this code https://github.com/Alfresco/alfresco-ng2-components/blob/develop/lib/content-services/src/lib/document-list/components/document-list.component.ts#L928.
So to me seems correct we should check the if(this.data.hasPreselectedRows) as this is the one we are trying to access in the next line. I don't know what the author of the code wanted to achieve with this but I believe this is the correct thing.
If we keep the if (this.hasPreselectedRows()) instead of the if(this.data.hasPreselectedRows()) we could end up with an error when accessing the elements of the this.data.getPreselectedRows() as it can be that there are no elements there.
lib/content-services/src/lib/document-list/data/share-datatable-adapter.ts
Show resolved
Hide resolved
…evice tab in attach file widget
8e3db88
to
37efbf8
Compare
…evice tab in attach file widget
Please check if the PR fulfills these requirements
What kind of change does this PR introduce? (check one with "x")
What is the current behaviour? (You can also link to an open issue here)
https://alfresco.atlassian.net/browse/AAE-4427
What is the new behaviour?
Does this PR introduce a breaking change? (check one with "x")
If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...
Other information: