@sgcloud-sgsistemas/base 1.0.18 → 1.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -63,6 +63,9 @@ class HotbarController {
|
|
|
63
63
|
if (this.sgElement.find(ev.target).length == 0 && this.openedIndexSub != undefined) {
|
|
64
64
|
$(this.modules[this.openedIndexSub]).removeClass('force-open-sub')
|
|
65
65
|
this.openedIndexSub = undefined
|
|
66
|
+
try{
|
|
67
|
+
this.$scope.$digest()
|
|
68
|
+
}catch{}
|
|
66
69
|
}
|
|
67
70
|
}
|
|
68
71
|
|
|
@@ -200,24 +203,36 @@ class HotbarController {
|
|
|
200
203
|
if (this.openedIndexSub) $(this.modules[this.openedIndexSub]).removeClass('force-open-sub')
|
|
201
204
|
$(element).addClass('force-open-sub')
|
|
202
205
|
this.openedIndexSub = index
|
|
203
|
-
|
|
206
|
+
} else {
|
|
204
207
|
const quickMenuSize: number = this.config.quickMenu!.links.length
|
|
205
208
|
this.__onClickSubModule(-1, index - 1)
|
|
206
209
|
this.currentIndexSelection = (this.currentIndexSelection + index) % (quickMenuSize + 1)
|
|
207
210
|
}
|
|
211
|
+
try{
|
|
212
|
+
this.$scope.$digest()
|
|
213
|
+
}catch{}
|
|
208
214
|
}
|
|
209
215
|
|
|
210
216
|
private reloadComponent() {
|
|
211
217
|
const menuState: boolean = this.open;
|
|
212
218
|
this.open = false;
|
|
213
219
|
this.forceHide = true;
|
|
220
|
+
try{
|
|
221
|
+
this.$scope.$digest()
|
|
222
|
+
}catch{}
|
|
214
223
|
this.$timeout((): void => {
|
|
215
224
|
this.ngifHide = true;
|
|
216
225
|
this.forceHide = false;
|
|
226
|
+
try{
|
|
227
|
+
this.$scope.$digest()
|
|
228
|
+
}catch{}
|
|
217
229
|
this.$timeout((): void => {
|
|
218
230
|
this.$timeout((): void => {
|
|
219
231
|
this.ngifHide = false;
|
|
220
232
|
this.open = menuState;
|
|
233
|
+
try{
|
|
234
|
+
this.$scope.$digest()
|
|
235
|
+
}catch{}
|
|
221
236
|
});
|
|
222
237
|
});
|
|
223
238
|
}, 300);
|