forked from AnalyticsEarth/variance-waterfall
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from qlik-oss/QB-2938/blank-waterfall-export
fix: return promise for export/download to await
- Loading branch information
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
import ThemeManager from './theme'; | ||
import ThemeManager from "./theme"; | ||
|
||
export default function($element, layout) { | ||
export default function ($element, layout) { | ||
let app = this.$scope.qlik.currApp(this); | ||
let isEditMode = this.$scope.options.interactionState === 2; | ||
this.$scope.updatedData(layout, isEditMode, true); | ||
app.theme.getApplied().then(qTheme => { | ||
return app.theme.getApplied().then(async (qTheme) => { | ||
this.$scope.theme = qTheme; | ||
ThemeManager.setAppTheme(this.$scope.theme); | ||
|
||
this.$scope.updatedData(layout, isEditMode, true); | ||
await this.$scope.updatedData(layout, isEditMode, true); | ||
return this.$scope.qlik.Promise.resolve(); | ||
}); | ||
} |