Blob refactor: Disable lock button when locked by another user
What does this MR do and why?
This fixes a bug where the lock button was not being disabled when the current file is locked by another user.
Note, changes in this MR are behind the :refactor_blob_viewer
feature flag.
Screenshots or screen recordings
before | after |
---|---|
How to set up and validate locally
Example below:
-
Enable the blob refactor
Feature.enable(:refactor_blob_viewer)
-
Lock a file
-
Log in as a different user and view the locked file
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #341016 (closed)
Edited by Jacques Erasmus