Skip to content
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

UHF-10553: TPR entity published checkbox #296

Merged
merged 1 commit into from
Aug 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dist/js/tprEditForm.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions hdbt_admin.theme
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,9 @@ function hdbt_admin_apply_form_theme(array &$form): void {

// Create revision by default.
$form['revision']['#default_value'] = TRUE;

// Make TPR entity content translation published status reactive.
$form['actions']['#attributes']['class'][] = 'tpr-entity-form-actions';
$form['#attached']['library'][] = 'hdbt_admin/tpr-edit-form';
}

Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/js/tprEditForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
attach: function attach() {
const newParent = document.querySelector('.region-sticky__items__inner');

if (newParent.querySelectorAll('.gin-sticky').length > 0) {
if (newParent.querySelectorAll('.tpr-entity-form-actions').length > 0) {

// Make content translation published status reactive.
// eslint max-nested-callbacks
Expand Down