WEB-581 Remove the hyphens (#2998)

This commit is contained in:
Soni Jay
2026-01-15 16:23:26 -06:00
committed by GitHub
parent dfe75d43d7
commit cc39b34a57
7 changed files with 35 additions and 8 deletions
@@ -11,6 +11,7 @@ import { DecimalPipe, NgClass } from '@angular/common';
import { Component, Input, OnChanges, OnDestroy, OnInit, SimpleChanges, ViewChild, inject } from '@angular/core';
import { MatCheckboxChange as MatCheckboxChange, MatCheckbox } from '@angular/material/checkbox';
import { MatDialog } from '@angular/material/dialog';
import { formatTabLabel } from 'app/shared/utils/format-tab-label.util';
import {
MatTable,
MatColumnDef,
@@ -62,6 +63,9 @@ import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
]
})
export class DatatableMultiRowComponent implements OnInit, OnDestroy, OnChanges {
formatTabLabel(label: string): string {
return formatTabLabel(label);
}
private route = inject(ActivatedRoute);
private dateUtils = inject(Dates);
private systemService = inject(SystemService);
@@ -163,7 +167,7 @@ export class DatatableMultiRowComponent implements OnInit, OnDestroy, OnChanges
dataTableEntryObject
);
const data = {
title: 'Add ' + this.datatableName + ' for ' + this.entityType,
title: 'Add ' + formatTabLabel(this.datatableName) + ' for ' + this.entityType,
formfields: formfields
};
const addDialogRef = this.dialog.open(FormDialogComponent, { data, width: '50rem' });
@@ -190,7 +194,7 @@ export class DatatableMultiRowComponent implements OnInit, OnDestroy, OnChanges
*/
delete() {
const deleteDataTableDialogRef = this.dialog.open(DeleteDialogComponent, {
data: { deleteContext: `the contents of ${this.datatableName}` }
data: { deleteContext: `the contents of ${formatTabLabel(this.datatableName)}` }
});
deleteDataTableDialogRef.afterClosed().subscribe((response: any) => {
if (response.delete) {
@@ -206,7 +210,9 @@ export class DatatableMultiRowComponent implements OnInit, OnDestroy, OnChanges
*/
deleteSelected() {
const deleteDataTableDialogRef = this.dialog.open(DeleteDialogComponent, {
data: { deleteContext: `the ${this.selection.selected.length} items selected of ${this.datatableName}` }
data: {
deleteContext: `the ${this.selection.selected.length} items selected of ${formatTabLabel(this.datatableName)}`
}
});
deleteDataTableDialogRef.afterClosed().subscribe((response: any) => {
if (response.delete) {