-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[EBT] Dashboard data loaded event #134243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 6 commits
18e5fc8
d1027ad
ea42022
2ccc4d2
a0747f6
0589135
3bf8787
061a352
0a6f01e
3c0d7e7
dcb10bd
93db343
b5171c4
8325bc8
cacf761
9f096fd
a0b9c79
3deac1c
174b734
3a0a0a5
5d68d06
e5cdea5
eb8d634
66ee132
a23893d
0450d69
bb1f371
dc7285f
d39fef1
7e3e1e9
8840e08
083b737
6249903
69525d5
851b493
6d4c422
287d2b6
05f5543
a6bb540
5c45fe6
78752c6
34e062f
bbe8f31
b19b052
f85b09a
280d616
aa48aa2
25b9bb4
61f589b
87584de
361cdf1
5cb32ee
a42f9ae
9331968
9cd0233
a045f90
a3648c9
6851ae1
c93fc14
c994f3e
b7d4114
a6bf8f8
7070630
5180eb3
fe7f9db
73e33af
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -137,6 +137,32 @@ export class MapEmbeddable | |
| this._savedMap = new SavedMap({ mapEmbeddableInput: initialInput }); | ||
| this._initializeSaveMap(); | ||
| this._subscription = this.getUpdated$().subscribe(() => this.onUpdate()); | ||
| this.setEventHandlers({ | ||
|
||
| onDataLoad: (_) => { | ||
| this.updateOutput({ | ||
| ...this.getOutput(), | ||
| loading: true, | ||
| error: undefined, | ||
| }); | ||
| }, | ||
| onDataLoadEnd: (_) => { | ||
| this.updateOutput({ | ||
| ...this.getOutput(), | ||
| loading: false, | ||
| error: undefined, | ||
| }); | ||
| }, | ||
| onDataLoadError: (e) => { | ||
| this.updateOutput({ | ||
| ...this.getOutput(), | ||
| loading: false, | ||
| error: { | ||
| name: 'EmbeddableError', | ||
| message: e.errorMessage, | ||
| }, | ||
| }); | ||
| }, | ||
| }); | ||
| this._controlledBy = `mapEmbeddablePanel${this.id}`; | ||
| this._prevFilterByMapExtent = | ||
| this.input.filterByMapExtent === undefined ? false : this.input.filterByMapExtent; | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.