-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EZP-28567: As an editor I want to be able to restore archived Content version #201
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some small nitpicks but in general +1
@@ -52,6 +53,15 @@ | |||
</a> | |||
</td> | |||
{% endif %} | |||
{% if is_archived %} | |||
<td> | |||
<button class="btn btn-icon btn--restore-archived-version" data-content-id="{{ version.contentInfo.id }}" data-version-no="{{ version.versionNo }}" data-language-code="{{ version.initialLanguageCode }}"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ez-btn--restore-archived-version
(function (global, doc) { | ||
const FORM_ARCHIVED_VERSION_RESTORE = 'form[name="archived_version_restore"]'; | ||
|
||
const restoreArchivedVersion = event => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(event)
@@ -0,0 +1,25 @@ | |||
(function (global, doc) { | |||
const FORM_ARCHIVED_VERSION_RESTORE = 'form[name="archived_version_restore"]'; | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove empty line
0d65d10
to
bd66c8d
Compare
@dew326 Fixed. |
Checklist:
$ composer fix-cs
)