diff --git a/src/core/features/reportbuilder/components/report-column/report-column.ts b/src/core/features/reportbuilder/components/report-column/report-column.ts index cf5575c3d..4006702e0 100644 --- a/src/core/features/reportbuilder/components/report-column/report-column.ts +++ b/src/core/features/reportbuilder/components/report-column/report-column.ts @@ -12,25 +12,31 @@ // See the License for the specific language governing permissions and // limitations under the License. -import { Component, EventEmitter, Input, Output } from '@angular/core'; +import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core'; @Component({ selector: 'core-report-builder-report-column', templateUrl: './report-column.html', styleUrls: ['./report-column.scss'], }) -export class CoreReportBuilderReportColumnComponent { +export class CoreReportBuilderReportColumnComponent implements OnInit { @Input() isExpanded = false; @Input() isExpandable = false; @Input() showFirstTitle = false; @Input() columnIndex!: number; @Input() rowIndex!: number; - @Input() column!: string; + @Input() column!: string | number; @Input() contextId!: number; @Input() header!: string; @Output() onToggleRow: EventEmitter = new EventEmitter(); + ngOnInit(): void { + if (typeof this.column === 'number') { + this.column = this.column.toString(); + } + } + /** * Emits row click */ diff --git a/src/core/features/reportbuilder/components/report-detail/report-detail.html b/src/core/features/reportbuilder/components/report-detail/report-detail.html index 13e856f82..6ffd3a631 100644 --- a/src/core/features/reportbuilder/components/report-detail/report-detail.html +++ b/src/core/features/reportbuilder/components/report-detail/report-detail.html @@ -2,11 +2,11 @@ - + + + - - - + @@ -46,15 +46,15 @@ - + +

{{ 'core.course.nocontentavailable' | translate }}

+
- -
diff --git a/src/core/features/reportbuilder/components/report-detail/report-detail.scss b/src/core/features/reportbuilder/components/report-detail/report-detail.scss index 9851fcad6..1f9dcd143 100644 --- a/src/core/features/reportbuilder/components/report-detail/report-detail.scss +++ b/src/core/features/reportbuilder/components/report-detail/report-detail.scss @@ -41,4 +41,12 @@ } } + + core-empty-box { + color: var(--gray-500); + p { + color: var(--gray-900); + } + } + } diff --git a/src/core/features/reportbuilder/services/reportbuilder.ts b/src/core/features/reportbuilder/services/reportbuilder.ts index 2564e25cc..601a89427 100644 --- a/src/core/features/reportbuilder/services/reportbuilder.ts +++ b/src/core/features/reportbuilder/services/reportbuilder.ts @@ -232,7 +232,7 @@ export interface CoreReportBuilderRetrieveReportMapped extends Omit