mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 01:13:25 +01:00
Et2Tree: Fix first node was always opened
Now respecting what's sent in data
This commit is contained in:
parent
e228355809
commit
6eba414ce8
@ -822,22 +822,12 @@ export class Et2Tree extends Et2WidgetWithSelectMixin(LitElement)
|
||||
{
|
||||
return true
|
||||
}
|
||||
if(this._selectOptions.length > 1 &&
|
||||
this._selectOptions[0] == selectOption &&
|
||||
(this._selectOptions.find((selectOption) => {
|
||||
return selectOption.open
|
||||
}) == undefined
|
||||
)
|
||||
)
|
||||
{
|
||||
return true //open the first item, if no item is opened
|
||||
}
|
||||
// TODO: Move this mail-specific stuff into mail
|
||||
if(selectOption.id && (selectOption.id.endsWith("INBOX") || selectOption.id == window.egw.preference("ActiveProfileID", "mail")))
|
||||
{
|
||||
return true
|
||||
}
|
||||
return false
|
||||
;
|
||||
return false;
|
||||
}
|
||||
|
||||
private _deleteItem(_id, list)
|
||||
|
Loading…
Reference in New Issue
Block a user