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:
ralf 2022-06-02 17:06:55 +02:00
parent a720a7f48a
commit 9579fc0caf

View File

@ -106,14 +106,6 @@ export class Et2LinkAppSelect extends SlotMixin(Et2Select)
{ {
super.connectedCallback(); 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 // Set icon
this.querySelector("[slot='prefix']").setAttribute("src", this.value + "/navbar"); this.querySelector("[slot='prefix']").setAttribute("src", this.value + "/navbar");
@ -210,6 +202,10 @@ export class Et2LinkAppSelect extends SlotMixin(Et2Select)
delete select_options['addressbook-email']; 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; this.select_options = select_options;
} }