Skip to content

Blob refactor: Disable lock button when locked by another user

Jacques Erasmus requested to merge 341016-lock-button-bug-fix into master

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
Screenshot_2021-12-07_at_15.20.18 Screenshot_2021-12-07_at_15.17.44

How to set up and validate locally

Example below:

  1. Enable the blob refactor

    Feature.enable(:refactor_blob_viewer)
  2. Lock a file

  3. 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.

Related to #341016 (closed)

Edited by Jacques Erasmus

Merge request reports