Skip to content

Commit

Permalink
Merge pull request #4784 from enonic/issue-4745
Browse files Browse the repository at this point in the history
Page Template Wizard- button 'Edit' in the support-selected option do…
  • Loading branch information
alansemenov committed Apr 6, 2017
2 parents 69b3980 + 617da7a commit 48475d8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,9 @@ module api.schema.content {
return content.getName();
}

protected isEditButtonNeeded(): boolean {
return false;
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ module api.ui.selector.combobox {
if (this.draggable) {
buttons.push(new api.dom.DivEl('drag-control'));
}
if (this.isEditable()) {
if (this.isEditButtonNeeded()) {
buttons.push(this.createEditButton(content));
}
if (this.removable) {
Expand All @@ -50,6 +50,10 @@ module api.ui.selector.combobox {
return buttons;
}

protected isEditButtonNeeded(): boolean {
return this.isEditable();
}

protected createView(content: T): api.dom.Element {

let namesAndIconView = new api.app.NamesAndIconViewBuilder().setSize(this.size).build();
Expand Down

0 comments on commit 48475d8

Please sign in to comment.