forked from extern/egroupware
fix app-selection in et2-link-entry does not set it's value from the user prefs / keep the last selected value
This commit is contained in:
parent
a720a7f48a
commit
9579fc0caf
@ -106,14 +106,6 @@ export class Et2LinkAppSelect extends SlotMixin(Et2Select)
|
||||
{
|
||||
super.connectedCallback();
|
||||
|
||||
if(this.select_options != null)
|
||||
{
|
||||
// Preset to last application
|
||||
if(!this.value)
|
||||
{
|
||||
this.value = <string>this.egw().preference('link_app', this.egw().app_name());
|
||||
}
|
||||
}
|
||||
// Set icon
|
||||
this.querySelector("[slot='prefix']").setAttribute("src", this.value + "/navbar");
|
||||
|
||||
@ -210,6 +202,10 @@ export class Et2LinkAppSelect extends SlotMixin(Et2Select)
|
||||
delete select_options['addressbook-email'];
|
||||
}
|
||||
}
|
||||
if (!this.value)
|
||||
{
|
||||
this.value = <string>this.egw().preference('link_app', this.egw().app_name());
|
||||
}
|
||||
this.select_options = select_options;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user