Skip to content

Commit

Permalink
[KNOWAGE-8182]
Browse files Browse the repository at this point in the history
  • Loading branch information
Redjaw committed Sep 8, 2023
2 parents 8977420 + 85ed0c8 commit b81282b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ export default defineComponent({
},
async getData() {
this.loading = true
this.dashboardId = cryptoRandomString({ length: 16, type: 'base64' })
if (!this.dashboardId) this.dashboardId = cryptoRandomString({ length: 16, type: 'base64' })
this.$emit('dashboardIdSet', this.dashboardId)
if (this.filtersData) {
this.drivers = loadDrivers(this.filtersData, this.model)
Expand Down
5 changes: 2 additions & 3 deletions src/modules/documentExecution/main/DocumentExecution.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
:reload-trigger="reloadTrigger"
:hidden-form-data="document.hiddenFormData"
:mode="'dashboard-popup'"
:filters-data="document.filtersData"
:filters-data="filtersData"
:new-dashboard-mode="false"
></DashboardController>
<div v-show="mode === 'dashboard' || newDashboardMode" class="p-d-flex p-flex-row" style="height: 100%">
Expand Down Expand Up @@ -744,8 +744,7 @@ export default defineComponent({
}
}
this.hiddenFormData.append('documentMode', this.documentMode)
this.document.typeCode === 'DATAMART' || this.document.typeCode === 'DOSSIER' || this.document.typeCode === 'OLAP' || (this.document.typeCode === 'DOCUMENT_COMPOSITE' && this.mode === 'dashboard') ? await this.sendHiddenFormData() : postForm.submit()
this.document.typeCode === 'DATAMART' || this.document.typeCode === 'DOSSIER' || this.document.typeCode === 'OLAP' || (['DOCUMENT_COMPOSITE', 'DASHBOARD'].includes(this.document.typeCode) && this.mode === 'dashboard') ? await this.sendHiddenFormData() : postForm.submit()
const index = this.breadcrumbs.findIndex((el: any) => el.label === this.document.name)
if (index !== -1) this.breadcrumbs[index].hiddenFormData = this.hiddenFormData
},
Expand Down

0 comments on commit b81282b

Please sign in to comment.