Spaces:
Building
Building
Update flare-ui/src/app/dialogs/confirm-dialog/confirm-dialog.component.ts
Browse files
flare-ui/src/app/dialogs/confirm-dialog/confirm-dialog.component.ts
CHANGED
@@ -55,9 +55,6 @@ export interface ConfirmDialogData {
|
|
55 |
<mat-form-field appearance="outline" class="full-width">
|
56 |
<mat-label>{{ data.dropdownPlaceholder || 'Select an option' }}</mat-label>
|
57 |
<mat-select [(ngModel)]="selectedValue">
|
58 |
-
<mat-option [value]="null">
|
59 |
-
<em>None (Create blank)</em>
|
60 |
-
</mat-option>
|
61 |
@for (option of data.dropdownOptions; track option.value) {
|
62 |
<mat-option [value]="option.value">
|
63 |
{{ option.label }}
|
@@ -66,6 +63,7 @@ export interface ConfirmDialogData {
|
|
66 |
</mat-select>
|
67 |
</mat-form-field>
|
68 |
}
|
|
|
69 |
</mat-dialog-content>
|
70 |
<mat-dialog-actions align="end">
|
71 |
<button mat-button (click)="onCancel()">{{ data.cancelText || 'Cancel' }}</button>
|
@@ -117,9 +115,9 @@ export default class ConfirmDialogComponent {
|
|
117 |
this.selectedVersionId = data.versions[0].id;
|
118 |
}
|
119 |
|
120 |
-
//
|
121 |
if (data.showDropdown) {
|
122 |
-
this.selectedValue =
|
123 |
}
|
124 |
}
|
125 |
|
|
|
55 |
<mat-form-field appearance="outline" class="full-width">
|
56 |
<mat-label>{{ data.dropdownPlaceholder || 'Select an option' }}</mat-label>
|
57 |
<mat-select [(ngModel)]="selectedValue">
|
|
|
|
|
|
|
58 |
@for (option of data.dropdownOptions; track option.value) {
|
59 |
<mat-option [value]="option.value">
|
60 |
{{ option.label }}
|
|
|
63 |
</mat-select>
|
64 |
</mat-form-field>
|
65 |
}
|
66 |
+
|
67 |
</mat-dialog-content>
|
68 |
<mat-dialog-actions align="end">
|
69 |
<button mat-button (click)="onCancel()">{{ data.cancelText || 'Cancel' }}</button>
|
|
|
115 |
this.selectedVersionId = data.versions[0].id;
|
116 |
}
|
117 |
|
118 |
+
// Dropdown için başlangıç değeri undefined olsun (seçim yapılmamış)
|
119 |
if (data.showDropdown) {
|
120 |
+
this.selectedValue = undefined;
|
121 |
}
|
122 |
}
|
123 |
|