Frontend crashes after unlocking an LFS file

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Low
    • None
    • Affects Version/s: 10.2.4, 10.3.1
    • Component/s: UI
    • None
    • Severity 3 - Minor

      Issue Summary

      When locking a file from the source view the button doesn't updates to unlock

      Steps to Reproduce

      1. Create a repository with a `.gitattributes` file with content `*.png filter=lfs diff=lfs merge=lfs -text`
      2. Add a `.png` file to the repo
      3. Navigate to the png file using the file browser and go to the source view for that file
      4. click on the "Lock button" - notice the button doesn't change to "Unlock"
      5. Refresh the page - Now the button will be "Unlock"
      6. Click on "Unlock"

      Expected Results

      • the button should toggle between Lock/Unlock when the action is done
      • the frontend shouldn't crash when unlocking a file

      Actual Results

      • The button doesn't toggle between Lock/Unlock
      • The frontend crashes after Unlocking a file

      Workaround

      Refreshing the browser fixes this issue

              Assignee:
              Unassigned
              Reporter:
              Carlos Sanchez Rosa
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: