mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-05 13:00:14 +01:00
Et2SelectAccount: Fix TypeError: Cannot set property select_options of #<Et2SelectAccount> which has only a getter
This commit is contained in:
parent
cf151afff8
commit
b47d6fc702
@ -53,7 +53,7 @@ export class Et2SelectAccount extends Et2Select
|
|||||||
get select_options() : Array<SelectOption>
|
get select_options() : Array<SelectOption>
|
||||||
{
|
{
|
||||||
const type = this.egw().preference('account_selection', 'common');
|
const type = this.egw().preference('account_selection', 'common');
|
||||||
if (type === 'none' && typeof egw.user('apps').admin === 'undefined')
|
if(type === 'none' && typeof this.egw().user('apps').admin === 'undefined')
|
||||||
{
|
{
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
@ -73,7 +73,11 @@ export class Et2SelectAccount extends Et2Select
|
|||||||
}
|
}
|
||||||
return select_options;
|
return select_options;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
set select_options(new_options : SelectOption[])
|
||||||
|
{
|
||||||
|
super.select_options = new_options;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// @ts-ignore TypeScript is not recognizing that this widget is a LitElement
|
|
||||||
customElements.define("et2-select-account", Et2SelectAccount);
|
customElements.define("et2-select-account", Et2SelectAccount);
|
Loading…
Reference in New Issue
Block a user