Skip to content

Commit

Permalink
columns changeable in report type "stored data" #406
Browse files Browse the repository at this point in the history
  • Loading branch information
Rello committed Aug 30, 2024
1 parent 6a0f8b6 commit 1581784
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
- dark mode problems #400
- wrong decimal handling for certain numbers #397
- navigation css
- columns changeable in report type "stored data" #406

## 4.14.0 - 2024-06-20
### Added
Expand Down
8 changes: 7 additions & 1 deletion js/sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ OCA.Analytics.Sidebar.Report = {
document.getElementById('sidebarReportExportButton').style.display = 'none';
document.getElementById('sidebarReportNameHint').style.display = 'none';
} else if (data['type'] === OCA.Analytics.TYPE_INTERNAL_DB) {
OCA.Analytics.Sidebar.Report.fillDatasetRelatedFields();
// OCA.Analytics.Sidebar.Report.fillDatasetRelatedFields();
} else {
let optionForm = OCA.Analytics.Datasource.buildDatasourceRelatedForm(data['type']);
document.getElementById('reportDatasourceSection').appendChild(optionForm);
Expand Down Expand Up @@ -344,6 +344,9 @@ OCA.Analytics.Sidebar.Report = {
document.getElementById('sidebarReportDatasetRow').style.display = 'table-row';
document.getElementById('sidebarReportSubheaderRow').style.display = 'table-row';
document.getElementById('sidebarReportParentRow').style.display = 'table-row';
document.getElementById('sidebarReportDimension1').disabled = true;
document.getElementById('sidebarReportDimension2').disabled = true;
document.getElementById('sidebarReportValue').disabled = true;
} else if (datasourceType === OCA.Analytics.TYPE_GROUP) {
document.getElementById('reportDimensionSectionHeader').style.display = 'none';
document.getElementById('reportDatasourceSectionHeader').style.display = 'none';
Expand All @@ -360,6 +363,9 @@ OCA.Analytics.Sidebar.Report = {
document.getElementById('sidebarReportDatasetRow').style.display = 'none';
document.getElementById('sidebarReportSubheaderRow').style.display = 'table-row';
document.getElementById('sidebarReportParentRow').style.display = 'table-row';
document.getElementById('sidebarReportDimension1').disabled = false;
document.getElementById('sidebarReportDimension2').disabled = false;
document.getElementById('sidebarReportValue').disabled = false;
}
},

Expand Down

0 comments on commit 1581784

Please sign in to comment.