You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Windows don't know about themselves, therefor you can open multiple instances. For example if you click on "Zu Alarmieren", it always opens a new one, doesn't honor existing ones.
The text was updated successfully, but these errors were encountered:
@at-dro: I think you know the window manager the best. Is there a possibility, to bring the current incident detail window to front, if it is requested a second time?
It has been a while since I worked with this code, but should be possible like this:
Add a hash identifying the window (something like "windowType-entityId") to the data object passed to addWindow
Store a map of the hash and the corresponding id (created at winman.js:142) whenever a new window is created
Check if the window for a hash already exists at the beginning of addWindow, and if yes open/focus the window (logic can probably be taken from toggle(id))
Make sure the hash is removed from the map in the _close(id) callback.
And while we are at it: The _close(id) callback seems to only remove the window and taskbar button from the DOM, but not the objects this.windows and this.buttons, which seems wrong.
Windows don't know about themselves, therefor you can open multiple instances. For example if you click on "Zu Alarmieren", it always opens a new one, doesn't honor existing ones.
The text was updated successfully, but these errors were encountered: