Skip to content

Commit

Permalink
added button for opening address book filter in people select dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
dehart committed Jan 20, 2025
1 parent 5650a14 commit 9948513
Showing 1 changed file with 15 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ go.modules.community.addressbook.SelectDialogPanel = Ext.extend(Ext.Panel, {
this.createGrid();

this.sidePanel = new Ext.Panel({
width: dp(300),
width: dp(330),
cls: 'go-sidenav',
region: "west",
split: true,
Expand All @@ -28,6 +28,7 @@ go.modules.community.addressbook.SelectDialogPanel = Ext.extend(Ext.Panel, {

this.searchField = new go.SearchField({
anchor: "100%",
flex:true,
handler: function(field, v){
this.search(v);
},
Expand All @@ -41,9 +42,18 @@ go.modules.community.addressbook.SelectDialogPanel = Ext.extend(Ext.Panel, {
region: "north",
autoHeight: true,
items: [{
xtype: "fieldset",
items: [this.searchField]
}]
xtype: "fieldset",
layout:'hbox',
items: [{
xtype:'button',
cls: 'go-narrow',
//margins:{right:dp(8)},
iconCls: "ic-menu",
handler: () => {
this.sidePanel.show();
}
},this.searchField]
}]
});

this.items = [search, {xtype:'panel',layout:'responsive',region:'center', items:[this.grid, this.sidePanel]}];
Expand Down Expand Up @@ -115,7 +125,7 @@ go.modules.community.addressbook.SelectDialogPanel = Ext.extend(Ext.Panel, {
{
//this class will hide it on larger screens
cls: 'go-narrow',
iconCls: "ic-arrow-forward",
iconCls: "ic-close",
tooltip: t("Contacts"),
handler: function () {
this.grid.show();
Expand Down

0 comments on commit 9948513

Please sign in to comment.