You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current behaviour:
When content-actions are rendered in a document-list row for the first time, they are cached in the "rowMenuCache" class member of DocumentListComponent.
If we have, let's say 2 actions : lock / unlock a node.
We can hide or disable the actions given the metatadata of the node with [visible] or [disabled]. This is working for first rendering of the actions.
If I click the lock action, there is an ACS REST API call that updates metadata and, on success, refreshes the document-list with .reload().
There is no way to set visible or disabled after .reload() because the actions are cached.
In the end, we have one node that was not locked, then locked with the content-action, and we still have the lock action after reloading the document-list.
Expected behavior:
Give the possibility to refresh cached row actions or refresh the cache/flush the cache after .reload().
Steps to reproduce the issue:
See "Current behaviour". Implement 1 or multiple action(s) that interact with node metadata and .reload() on documentlist.
Trying to manually set "visible" or "disabled" on the "actions" class member (actions: ContentActionModel[]) is not working because the getNodeActions() method retrieves them from the cache.
Component name and version:
document-list.component.ts
all ADF versions
Browser and version:
all
Node version (for build issues):
node 14.16.0
New feature request:
The text was updated successfully, but these errors were encountered:
Type of issue: (check with "[x]")
Current behaviour:
When content-actions are rendered in a document-list row for the first time, they are cached in the "rowMenuCache" class member of DocumentListComponent.
If we have, let's say 2 actions : lock / unlock a node.
We can hide or disable the actions given the metatadata of the node with [visible] or [disabled]. This is working for first rendering of the actions.
If I click the lock action, there is an ACS REST API call that updates metadata and, on success, refreshes the document-list with .reload().
There is no way to set visible or disabled after .reload() because the actions are cached.
In the end, we have one node that was not locked, then locked with the content-action, and we still have the lock action after reloading the document-list.
Expected behavior:
Give the possibility to refresh cached row actions or refresh the cache/flush the cache after .reload().
Steps to reproduce the issue:
See "Current behaviour". Implement 1 or multiple action(s) that interact with node metadata and .reload() on documentlist.
Trying to manually set "visible" or "disabled" on the "actions" class member (actions: ContentActionModel[]) is not working because the getNodeActions() method retrieves them from the cache.
Component name and version:
document-list.component.ts
all ADF versions
Browser and version:
all
Node version (for build issues):
node 14.16.0
New feature request:
The text was updated successfully, but these errors were encountered: