Closed AndyKilmory closed 2 months ago
Tested in our TEST env, this fixes not only Info panel in Browser and Viewer, but also badges on thumbnails! Thank you!
Seen on auth, usage, image-loader, metadata-editor, thrall, leases, cropper, collections, media-api, kahuna (created by @AndyKilmory and merged by @paperboyo 8 minutes and 39 seconds ago) Please check your changes!
What does this change do?
There is currently a bug such that if a user is viewing an image and updates the usage rights category in the metadata panel and adds some restrictions text to the image on save of the updates to the rights category the warning panels metadata-validity and image-cost-message do not display - i.e. they are not getting updated correctly on changes in usage rights category and restrictions. (refreshing the screen will correct the display). The same problem occurs in reverse - if restrictions are removed from an image the visibility of the restrictions panel and the warning panel above it does not update (ie they remain visibile when they should be hidden).
This PR corrects this issue by 'listening' on $rootScope for the 'images-updated' message and updating both controls to relfect the new image information.
Initial state:
after restrictions removed and saved...
after refresh...
How should a reviewer test this change?
Ensure that the correct restriction information is displayed in the metadata panel after the restrictions text linked to the image has either been added or removed.
Who should look at this?
Tested? Documented?