mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-15 12:34:33 +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
2190cb4fd7
commit
014b4072a7
@ -493,6 +493,15 @@ export class Et2Portlet extends Et2Widget(SlCard)
|
||||
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,
|
||||
// but ideally it doesn't
|
||||
this.classList.add("loading");
|
||||
|
Loading…
Reference in New Issue
Block a user