mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-02 20:19:27 +01:00
Home: Immediately apply property changes to portlet
Server can override if needed, but this is a little more responsive and fixes some non webComponent portlets (eg: single entry) still needing a reload before they can stay up to date
This commit is contained in:
parent
ae265c9b52
commit
7c229e1df3
@ -493,6 +493,15 @@ export class Et2Portlet extends Et2Widget(SlCard)
|
|||||||
return Promise.resolve();
|
return Promise.resolve();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// We can set some things immediately, server will overwrite if it doesn't like them
|
||||||
|
this.portletProperties.forEach(p =>
|
||||||
|
{
|
||||||
|
if(typeof settings[p.name] != "undefined")
|
||||||
|
{
|
||||||
|
this[p.name] = settings[p.name];
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
// Save settings - server might reply with new content if the portlet needs an update,
|
// Save settings - server might reply with new content if the portlet needs an update,
|
||||||
// but ideally it doesn't
|
// but ideally it doesn't
|
||||||
this.classList.add("loading");
|
this.classList.add("loading");
|
||||||
|
Loading…
Reference in New Issue
Block a user