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
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { Component, Inject } from '@angular/core';
|
2 |
+
import { CommonModule } from '@angular/common';
|
3 |
+
import { MatDialogRef, MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
|
4 |
+
import { MatButtonModule } from '@angular/material/button';
|
5 |
+
import { MatIconModule } from '@angular/material/icon';
|
6 |
+
|
7 |
+
@Component({
|
8 |
+
selector: 'app-version-edit-dialog',
|
9 |
+
standalone: true,
|
10 |
+
imports: [CommonModule, MatDialogModule, MatButtonModule, MatIconModule],
|
11 |
+
template: `
|
12 |
+
<h2 mat-dialog-title>Manage Versions - {{ data.project.name }}</h2>
|
13 |
+
|
14 |
+
<mat-dialog-content>
|
15 |
+
<div class="version-management-placeholder">
|
16 |
+
<mat-icon>construction</mat-icon>
|
17 |
+
<h3>Version Management Coming Soon</h3>
|
18 |
+
<p>This feature will allow you to:</p>
|
19 |
+
<ul>
|
20 |
+
<li>Create new versions from existing ones</li>
|
21 |
+
<li>Edit unpublished versions</li>
|
22 |
+
<li>Publish versions to production</li>
|
23 |
+
<li>Compare versions side by side</li>
|
24 |
+
<li>Manage intents and parameters</li>
|
25 |
+
</ul>
|
26 |
+
</div>
|
27 |
+
</mat-dialog-content>
|
28 |
+
|
29 |
+
<mat-dialog-actions align="end">
|
30 |
+
<button mat-button (click)="close()">Close</button>
|
31 |
+
</mat-dialog-actions>
|
32 |
+
`,
|
33 |
+
styles: [`
|
34 |
+
mat-dialog-content {
|
35 |
+
min-width: 600px;
|
36 |
+
min-height: 400px;
|
37 |
+
}
|
38 |
+
|
39 |
+
.version-management-placeholder {
|
40 |
+
text-align: center;
|
41 |
+
padding: 60px 20px;
|
42 |
+
|
43 |
+
mat-icon {
|
44 |
+
font-size: 64px;
|
45 |
+
width: 64px;
|
46 |
+
height: 64px;
|
47 |
+
color: #666;
|
48 |
+
margin-bottom: 20px;
|
49 |
+
}
|
50 |
+
|
51 |
+
h3 {
|
52 |
+
color: #333;
|
53 |
+
margin-bottom: 16px;
|
54 |
+
}
|
55 |
+
|
56 |
+
p {
|
57 |
+
color: #666;
|
58 |
+
margin-bottom: 20px;
|
59 |
+
}
|
60 |
+
|
61 |
+
ul {
|
62 |
+
text-align: left;
|
63 |
+
max-width: 400px;
|
64 |
+
margin: 0 auto;
|
65 |
+
color: #666;
|
66 |
+
|
67 |
+
li {
|
68 |
+
margin-bottom: 8px;
|
69 |
+
}
|
70 |
+
}
|
71 |
+
}
|
72 |
+
`]
|
73 |
+
})
|
74 |
+
export default class VersionEditDialogComponent {
|
75 |
+
constructor(
|
76 |
+
public dialogRef: MatDialogRef<VersionEditDialogComponent>,
|
77 |
+
@Inject(MAT_DIALOG_DATA) public data: any
|
78 |
+
) {}
|
79 |
+
|
80 |
+
close() {
|
81 |
+
this.dialogRef.close(false);
|
82 |
+
}
|
83 |
+
}
|