Skip to content

Commit

Permalink
Merge pull request #1041 from gisaia/fix/addTab
Browse files Browse the repository at this point in the history
fix: display correct name for dialog when creating tab for resultlist
  • Loading branch information
QuCMGisaia authored Jan 28, 2025
2 parents 478f9c4 + c14d081 commit c9d7f44
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ h1 {
.palette-gradient {
@extend %palette;

margin-top: 40px;
margin-top: 40px !important;
position: relative;

.parent-gradient-buttons {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,20 +48,20 @@ export class GlobalResultListComponent implements OnDestroy {
public preview = [];
private editDialogRef: MatDialogRef<EditTabComponent>;

@ViewChild('matTabGroup', { static: false }) private matTabGroup: MatTabGroup;
@ViewChild('matTabGroup', { static: false }) private readonly matTabGroup: MatTabGroup;

public constructor(
public mainFormService: MainFormService,
private collectionService: CollectionService,
private dialog: MatDialog,
private defaultValuesService: DefaultValuesService
private readonly collectionService: CollectionService,
private readonly dialog: MatDialog,
private readonly defaultValuesService: DefaultValuesService
) {
this.listsFa = this.mainFormService.resultListConfig.getResultListsFa();
this.updatePreview();
}

public addResultList() {
const dialogRef = this.dialog.open(InputModalComponent);
const dialogRef = this.dialog.open(InputModalComponent, { data: { title: marker('Tab name') }});
this.newAfterClosedSub = dialogRef.afterClosed().subscribe(name => {
if (name) {
const formGroup = new ResultlistConfigForm(this.mainFormService.getMainCollection(), this.collectionService, name);
Expand Down

0 comments on commit c9d7f44

Please sign in to comment.