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

[Improvement]: Make depedencies hideable based on config #79

Merged
merged 1 commit into from
Jun 18, 2024
Merged
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
8 changes: 6 additions & 2 deletions public/js/document/printpage.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ pimcore.document.printpage = Class.create(pimcore.document.printabstract, {
this.versions = new pimcore.document.versions(this);
}

this.dependencies = new pimcore.element.dependencies(this, "document");
if (typeof pimcore.settings.dependency === 'undefined' || pimcore.settings.dependency) {
kingjia90 marked this conversation as resolved.
Show resolved Hide resolved
this.dependencies = new pimcore.element.dependencies(this, "document");
}
this.preview = new pimcore.document.pages.preview(this);
this.pdfpreview = new pimcore.document.printpages.pdfpreview(this);
this.workflows = new pimcore.element.workflows(this, "document");
Expand All @@ -65,7 +67,9 @@ pimcore.document.printpage = Class.create(pimcore.document.printabstract, {
items.push(this.versions.getLayout());
}

items.push(this.dependencies.getLayout());
if (typeof this.dependencies !== "undefined") {
items.push(this.dependencies.getLayout());
}

if (user.isAllowed("notes_events")) {
items.push(this.notes.getLayout());
Expand Down
Loading