django-cms / djangocms-versioning

General purpose versioning package for Django CMS 4 and above.
Other
34 stars 30 forks source link

fix: No unlock button for published content, edit preview button for locked versions #365

Closed fsbraun closed 9 months ago

fsbraun commented 11 months ago

Description

This PR resolves a problem where the unlock button on a published version (where unlocking does not make sense).

It also adds a preview button to a locked version in the version change list.

Related resources

Checklist

codecov[bot] commented 11 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 90.88%. Comparing base (f90c5b2) to head (7fb4aa0). Report is 4 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #365 +/- ## ======================================= Coverage 90.88% 90.88% ======================================= Files 72 72 Lines 2546 2546 Branches 361 361 ======================================= Hits 2314 2314 Misses 168 168 Partials 64 64 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.