Spaces:
Building
Building
Update flare-ui/src/app/dialogs/version-edit-dialog/version-edit-dialog.component.ts
Browse files
flare-ui/src/app/dialogs/version-edit-dialog/version-edit-dialog.component.ts
CHANGED
@@ -25,7 +25,7 @@ import ConfirmDialogComponent from '../confirm-dialog/confirm-dialog.component';
|
|
25 |
imports: [
|
26 |
CommonModule,
|
27 |
ReactiveFormsModule,
|
28 |
-
FormsModule,
|
29 |
MatDialogModule,
|
30 |
MatTabsModule,
|
31 |
MatFormFieldModule,
|
@@ -349,13 +349,13 @@ export default class VersionEditDialogComponent implements OnInit {
|
|
349 |
width: '500px',
|
350 |
data: {
|
351 |
title: 'Create New Version',
|
352 |
-
message: 'Which version would you like to use as a base for the new version?',
|
353 |
showDropdown: true,
|
354 |
-
dropdownOptions:
|
355 |
value: v.id,
|
356 |
-
label: `Version ${v.id}
|
357 |
})),
|
358 |
-
dropdownPlaceholder: 'Select
|
359 |
confirmText: 'Create',
|
360 |
cancelText: 'Cancel'
|
361 |
}
|
|
|
25 |
imports: [
|
26 |
CommonModule,
|
27 |
ReactiveFormsModule,
|
28 |
+
FormsModule,
|
29 |
MatDialogModule,
|
30 |
MatTabsModule,
|
31 |
MatFormFieldModule,
|
|
|
349 |
width: '500px',
|
350 |
data: {
|
351 |
title: 'Create New Version',
|
352 |
+
message: 'Which published version would you like to use as a base for the new version?',
|
353 |
showDropdown: true,
|
354 |
+
dropdownOptions: publishedVersions.map(v => ({ // ✅ publishedVersions kullan
|
355 |
value: v.id,
|
356 |
+
label: `Version ${v.id} - ${v.caption || 'No description'}`
|
357 |
})),
|
358 |
+
dropdownPlaceholder: 'Select published version (or leave empty for blank)',
|
359 |
confirmText: 'Create',
|
360 |
cancelText: 'Cancel'
|
361 |
}
|