mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 07:09:20 +01:00
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();
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user