infobar: listen 'updateviewlist' event

check infobar data when the server send
the user info data.

Change-Id: I0ba1da488f9b3d03dc7e3f42cea718273e6939b1
Signed-off-by: Henry Castro <hcastro@collabora.com>
This commit is contained in:
Henry Castro 2022-07-07 10:12:53 -04:00 committed by Gökay ŞATIR
parent c4681a79ba
commit 545122e933

View file

@ -10,11 +10,13 @@ L.Map.mergeOptions({
L.Map.Infobar = L.Handler.extend({
addHooks: function () {
this._map.on('updateviewslist', this.onUpdateInfo, this);
this._map.on('infobar', this.onInfobar, this);
},
removeHooks: function () {
this._map.off('infobar', this.onInfobar, this);
this._map.off('updateviewlist', this.onUpdateInfo, this);
},
onUpdateInfo: function () {