From b78c81cf6a9a75a178f8a6fb7e10182d605c69ed Mon Sep 17 00:00:00 2001
From: SchoolGuy
+
+ Constructor
diff --git a/components/AppEventsComponent.html b/components/AppEventsComponent.html
index b552404f..04d206f3 100644
--- a/components/AppEventsComponent.html
+++ b/components/AppEventsComponent.html
@@ -758,7 +758,7 @@
diff --git a/components/AppManageComponent.html b/components/AppManageComponent.html
index 427935ba..20035a45 100644
--- a/components/AppManageComponent.html
+++ b/components/AppManageComponent.html
@@ -544,7 +544,7 @@
diff --git a/components/BuildISOComponent.html b/components/BuildISOComponent.html
index c60ed633..c83fd211 100644
--- a/components/BuildISOComponent.html
+++ b/components/BuildISOComponent.html
@@ -824,7 +824,7 @@
diff --git a/components/CheckSysComponent.html b/components/CheckSysComponent.html
index 9f5a6efa..12bfc597 100644
--- a/components/CheckSysComponent.html
+++ b/components/CheckSysComponent.html
@@ -806,7 +806,7 @@
diff --git a/components/DialogBoxTextConfirmComponent.html b/components/DialogBoxTextConfirmComponent.html
index b818f0e4..70e5cd5f 100644
--- a/components/DialogBoxTextConfirmComponent.html
+++ b/components/DialogBoxTextConfirmComponent.html
@@ -400,7 +400,7 @@
diff --git a/components/DialogItemRenameComponent.html b/components/DialogItemRenameComponent.html
new file mode 100644
index 00000000..297da583
--- /dev/null
+++ b/components/DialogItemRenameComponent.html
@@ -0,0 +1,636 @@
+
+
+
+
+
+
File
+
+projects/cobbler-frontend/src/app/common/dialog-item-rename/dialog-item-rename.component.ts
+Metadata
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ changeDetection
+
+ ChangeDetectionStrategy.OnPush
+
+
+ selector
+
+ cobbler-dialog-item-rename
+
+
+ standalone
+
+ true
+
+
+
+
+
+ imports
+
+
+ MatDialogModule
+ MatButtonModule
+ ReactiveFormsModule
+ MatFormFieldModule
+ MatInputModule
+ FormsModule
+
+
+
+
+
+ templateUrl
+
+ ./dialog-item-rename.component.html
+
+
+
+
+
+
+
+ styleUrl
+
+ ./dialog-item-rename.component.scss
Index
+
+
+
+
+
+
+
+ Properties
+
+
+
+
+
+
+
+
+
+
+
+ Methods
+
+
+
+
+
+
+
+
+
+
+
+
+ Constructor
+
+
+
+
+
+
+
+ constructor(data: DialogItemRenameData)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+ Type
+ Optional
+
+
+
+ data
+
+
+
+
+ DialogItemRenameData
+
+ No
+
+
+
+ Methods
+
+
+
+
+
+
+
+
+
+ onNoClick
+
+
+
+
+
+
+
+
+
+ onNoClick()
+
+
+
+
+
+
+
+
+
+
+
+
+
+ void
+
+
+ Properties
+
+
+
+
+
+
+
+
+
+
+ Public
+ data
+
+
+
+
+
+
+ Type :
+ DialogItemRenameData
+
+
+
+
+ Decorators :
+
+
+
+ @Inject(MAT_DIALOG_DATA)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Readonly
+ dialogCloseSignal
+
+
+
+
+
+
+ Default value :
+ model('')
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Readonly
+ dialogRef
+
+
+
+
+
+
+ Default value :
+ inject(MatDialogRef<DialogItemRenameComponent>)
+
+
+
+
+
+
+
+
+
+ import {
+ ChangeDetectionStrategy,
+ Component,
+ inject,
+ Inject,
+ model,
+} from '@angular/core';
+import { FormsModule, ReactiveFormsModule } from '@angular/forms';
+import { MatButton, MatButtonModule } from '@angular/material/button';
+import {
+ MAT_DIALOG_DATA,
+ MatDialogModule,
+ MatDialogRef,
+} from '@angular/material/dialog';
+import { MatFormFieldModule } from '@angular/material/form-field';
+import { MatInputModule } from '@angular/material/input';
+
+export interface DialogItemRenameData {
+ itemType: string;
+ itemName: string;
+ itemUid: string;
+}
+
+@Component({
+ selector: 'cobbler-dialog-item-rename',
+ standalone: true,
+ imports: [
+ MatDialogModule,
+ MatButtonModule,
+ ReactiveFormsModule,
+ MatFormFieldModule,
+ MatInputModule,
+ FormsModule,
+ ],
+ templateUrl: './dialog-item-rename.component.html',
+ styleUrl: './dialog-item-rename.component.scss',
+ changeDetection: ChangeDetectionStrategy.OnPush,
+})
+export class DialogItemRenameComponent {
+ readonly dialogRef = inject(MatDialogRef<DialogItemRenameComponent>);
+ readonly dialogCloseSignal = model('');
+
+ constructor(@Inject(MAT_DIALOG_DATA) public data: DialogItemRenameData) {}
+
+ onNoClick(): void {
+ this.dialogRef.close();
+ }
+}
+
+ <h1 mat-dialog-title>Rename {{ data.itemType }}</h1>
+<mat-dialog-content>
+ <mat-form-field class="form-field-full-width">
+ <mat-label>Old name</mat-label>
+ <input matInput readonly value="{{ data.itemName }}" />
+ </mat-form-field>
+
+ <mat-form-field class="form-field-full-width">
+ <mat-label>New name</mat-label>
+ <input
+ matInput
+ [(ngModel)]="dialogCloseSignal"
+ cdkFocusInitial
+ placeholder="New name"
+ />
+ </mat-form-field>
+</mat-dialog-content>
+<mat-dialog-actions>
+ <button mat-button (click)="onNoClick()">Close</button>
+ <button mat-button [mat-dialog-close]="dialogCloseSignal()">Rename</button>
+</mat-dialog-actions>
+
results matching ""
+
+
No results matching ""
+
diff --git a/components/DistroEditComponent.html b/components/DistroEditComponent.html
index 092b3796..80a17057 100644
--- a/components/DistroEditComponent.html
+++ b/components/DistroEditComponent.html
@@ -1635,7 +1635,7 @@
diff --git a/components/DistrosOverviewComponent.html b/components/DistrosOverviewComponent.html
index 6ba3593a..332d0b02 100644
--- a/components/DistrosOverviewComponent.html
+++ b/components/DistrosOverviewComponent.html
@@ -131,6 +131,7 @@
Implements
OnInit
+ OnDestroy
constructor(userService: UserService, cobblerApiService: CobblerApiService, _snackBar: MatSnackBar, router: Router)
+constructor(userService: UserService, cobblerApiService: CobblerApiService, _snackBar: MatSnackBar, router: Router, dialog: MatDialog)
MatDialog
+ ngOnDestroy()
+ void
+
+ + + + ngOnInit + + + | +
+ngOnInit()
+ |
+
+ + | +
+
+
+ Returns :
+ void
+
+ |
+
+ - editDistro - + renameDistro + |
-editDistro(uid: string, name: string)
+renameDistro(uid: string, name: string)
|
- + |
- - - ngOnInit - - - | -
-ngOnInit()
- |
-
- - | -
-
-
- Returns :
- void
-
- |
-
- + | ||
- + | ||
- + | ||
- + | ||
- + + | +
+ + + Private + ngUnsubscribe + + + | +||
+ Default value : new Subject<void>()
+ |
+ ||
+ | ||
- + | ||
- + | ||
-constructor(userService: UserService, cobblerApiService: CobblerApiService, _snackBar: MatSnackBar, router: Router)
+constructor(userService: UserService, cobblerApiService: CobblerApiService, _snackBar: MatSnackBar, router: Router, dialog: MatDialog)
|
||
- + | ||
dialog | + +
+ MatDialog
+ |
+
+ + No + | + +
ngOnDestroy()
+ void
+
+ + + + ngOnInit + + + | +
+ngOnInit()
+ |
+
+ + | +
+
+
+ Returns :
+ void
+
+ |
+
+ - editFile - + renameFile + |
-editFile(uid: string, name: string)
+renameFile(uid: string, name: string)
|
- + |
- - - ngOnInit - - - | -
-ngOnInit()
- |
-
- - | -
-
-
- Returns :
- void
-
- |
-
- + | ||
- + | ||
- + | ||
- + | ||
- + + | +
+ + + Private + ngUnsubscribe + + + | +||
+ Default value : new Subject<void>()
+ |
+ ||
+ | ||
- + | ||
- + | ||
-constructor(userService: UserService, cobblerApiService: CobblerApiService, _snackBar: MatSnackBar, router: Router)
+constructor(userService: UserService, cobblerApiService: CobblerApiService, _snackBar: MatSnackBar, router: Router, dialog: MatDialog)
|
||
- + | ||
dialog | + +
+ MatDialog
+ |
+
+ + No + | + +
ngOnDestroy()
+ void
+
+ + + + ngOnInit + + + | +
+ngOnInit()
+ |
+
+ + | +
+
+
+ Returns :
+ void
+
+ |
+
+ - editImage - + renameImage + |
-editImage(uid: string, name: string)
+renameImage(uid: string, name: string)
|
- + |
- - - ngOnInit - - - | -
-ngOnInit()
- |
-
- - | -
-
-
- Returns :
- void
-
- |
-
- + | ||
- + | ||
- + | ||
- + | ||
- + + | +
+ + + Private + ngUnsubscribe + + + | +||
+ Default value : new Subject<void>()
+ |
+ ||
+ | ||
- + | ||
- + | ||
-constructor(userService: UserService, cobblerApiService: CobblerApiService, _snackBar: MatSnackBar, router: Router)
+constructor(userService: UserService, cobblerApiService: CobblerApiService, _snackBar: MatSnackBar, router: Router, dialog: MatDialog)
|
||
- + | ||
dialog | + +
+ MatDialog
+ |
+
+ + No + | + +
ngOnDestroy()
+ void
+
+ + - editManagementClass - + ngOnInit + |
-editManagementClass(uid: string, name: string)
+ngOnInit()
|
- + + | +
+
+
+ Returns :
+ void
+
+ |
+
+ + + renameManagementClass + + + | +
+renameManagementClass(uid: string, name: string)
+ |
+
+ |
- - - ngOnInit - - - | -
-ngOnInit()
- |
-
- - | -
-
-
- Returns :
- void
-
- |
-
- + | ||
- + | ||
- + | ||
- + | ||
- + + | +
+ + + Private + ngUnsubscribe + + + | +||
+ Default value : new Subject<void>()
+ |
+ ||
+ | ||
- + | ||
- + | ||
-constructor(userService: UserService, cobblerApiService: CobblerApiService, _snackBar: MatSnackBar, router: Router)
+constructor(userService: UserService, cobblerApiService: CobblerApiService, _snackBar: MatSnackBar, router: Router, dialog: MatDialog)
|
||
- + | ||
dialog | + +
+ MatDialog
+ |
+
+ + No + | + +
ngOnDestroy()
+ void
+
+ + - editPackage - + ngOnInit + |
-editPackage(uid: string, name: string)
+ngOnInit()
|
- + + | +
+
+
+ Returns :
+ void
+
+ |
+
+ + + renamePackage + + + | +
+renamePackage(uid: string, name: string)
+ |
+
+ |
- - - ngOnInit - - - | -
-ngOnInit()
- |
-
- - | -
-
-
- Returns :
- void
-
- |
-
- + | ||
- + | ||
- + | ||
- + | ||
- + + | +
+ + + Private + ngUnsubscribe + + + | +||
+ Default value : new Subject<void>()
+ |
+ ||
+ | ||
- + | ||
- + | ||
-constructor(userService: UserService, cobblerApiService: CobblerApiService, _snackBar: MatSnackBar, router: Router)
+constructor(userService: UserService, cobblerApiService: CobblerApiService, _snackBar: MatSnackBar, router: Router, dialog: MatDialog)
|
||
- + | ||
dialog | + +
+ MatDialog
+ |
+
+ + No + | + +
ngOnDestroy()
+ void
+
+ + - editProfile - + ngOnInit + |
-editProfile(uid: string, name: string)
+ngOnInit()
|
- + + | +
+
+
+ Returns :
+ void
+
+ |
+
+ + + renameProfile + + + | +
+renameProfile(uid: string, name: string)
+ |
+
+ |
- - - ngOnInit - - - | -
-ngOnInit()
- |
-
- - | -
-
-
- Returns :
- void
-
- |
-
- + | ||
- + | ||
- + | ||
- + | ||
- + + | +
+ + + Private + ngUnsubscribe + + + | +||
+ Default value : new Subject<void>()
+ |
+ ||
+ | ||
- + | ||
- + | ||
-constructor(userService: UserService, cobblerApiService: CobblerApiService, _snackBar: MatSnackBar, router: Router)
+constructor(userService: UserService, cobblerApiService: CobblerApiService, _snackBar: MatSnackBar, router: Router, dialog: MatDialog)
|
||
- + | ||
dialog | + +
+ MatDialog
+ |
+
+ + No + | + +
ngOnDestroy()
+ void
+
+ + + + ngOnInit + + + | +
+ngOnInit()
+ |
+
+ + | +
+
+
+ Returns :
+ void
+
+ |
+
+ - editRepository - + renameRepository + |
-editRepository(uid: string, name: string)
+renameRepository(uid: string, name: string)
|
- + |
- - - ngOnInit - - - | -
-ngOnInit()
- |
-
- - | -
-
-
- Returns :
- void
-
- |
-
- + | ||
- + | ||
- + | ||
- + | ||
- + + | +
+ + + Private + ngUnsubscribe + + + | +||
+ Default value : new Subject<void>()
+ |
+ ||
+ | ||
- + | ||
- + | ||
-constructor(userService: UserService, cobblerApiService: CobblerApiService, _snackBar: MatSnackBar, router: Router)
+constructor(userService: UserService, cobblerApiService: CobblerApiService, _snackBar: MatSnackBar, router: Router, dialog: MatDialog)
|
||
- + | ||
dialog | + +
+ MatDialog
+ |
+
+ + No + | + +
ngOnDestroy()
+ void
+
+ + + + ngOnInit + + + | +
+ngOnInit()
+ |
+
+ + | +
+
+
+ Returns :
+ void
+
+ |
+
+ - editSystem - + renameSystem + |
-editSystem(uid: string, name: string)
+renameSystem(uid: string, name: string)
|
- + |
- - - ngOnInit - - - | -
-ngOnInit()
- |
-
- - | -
-
-
- Returns :
- void
-
- |
-
- + | ||
- + | ||
- + | ||
- + | ||
- + + | +
+ + + Private + ngUnsubscribe + + + | +||||||||||
+ Default value : new Subject<void>()
+ |
+ ||||||||||
+ | ||||||||||
- + | ||||||||||
- + | ||||||||||
+ + projects/cobbler-frontend/src/app/common/dialog-item-rename/dialog-item-rename.component.ts + | +component | +DialogItemRenameComponent | ++ 0 % + (0/6) + | +|||||||
+ + projects/cobbler-frontend/src/app/common/dialog-item-rename/dialog-item-rename.component.ts + | +interface | +DialogItemRenameData | ++ 0 % + (0/4) + | +|||||||
@@ -823,7 +847,7 @@ | DistrosOverviewComponent | 0 % - (0/12) + (0/14) | ||||||||
FileOverviewComponent | 0 % - (0/12) + (0/14) | |||||||||
ImageOverviewComponent | 0 % - (0/12) + (0/14) | |||||||||
ManagementClassOverviewComponent | 0 % - (0/12) + (0/14) | |||||||||
PackageOverviewComponent | 0 % - (0/12) + (0/14) | |||||||||
ProfileOverviewComponent | 0 % - (0/12) + (0/14) | |||||||||
RepositoryOverviewComponent | 0 % - (0/12) + (0/14) | |||||||||
SystemOverviewComponent | 0 % - (0/12) + (0/14) | |||||||||
+ Properties+ |
+
+
|
+
+ + itemName + + + + + | +
+ itemName:
+ |
+
+ Type : string
+
+ |
+
+ + itemType + + + + + | +
+ itemType:
+ |
+
+ Type : string
+
+ |
+
+ + itemUid + + + + + | +
+ itemUid:
+ |
+
+ Type : string
+
+ |
+
import {
+ ChangeDetectionStrategy,
+ Component,
+ inject,
+ Inject,
+ model,
+} from '@angular/core';
+import { FormsModule, ReactiveFormsModule } from '@angular/forms';
+import { MatButton, MatButtonModule } from '@angular/material/button';
+import {
+ MAT_DIALOG_DATA,
+ MatDialogModule,
+ MatDialogRef,
+} from '@angular/material/dialog';
+import { MatFormFieldModule } from '@angular/material/form-field';
+import { MatInputModule } from '@angular/material/input';
+
+export interface DialogItemRenameData {
+ itemType: string;
+ itemName: string;
+ itemUid: string;
+}
+
+@Component({
+ selector: 'cobbler-dialog-item-rename',
+ standalone: true,
+ imports: [
+ MatDialogModule,
+ MatButtonModule,
+ ReactiveFormsModule,
+ MatFormFieldModule,
+ MatInputModule,
+ FormsModule,
+ ],
+ templateUrl: './dialog-item-rename.component.html',
+ styleUrl: './dialog-item-rename.component.scss',
+ changeDetection: ChangeDetectionStrategy.OnPush,
+})
+export class DialogItemRenameComponent {
+ readonly dialogRef = inject(MatDialogRef<DialogItemRenameComponent>);
+ readonly dialogCloseSignal = model('');
+
+ constructor(@Inject(MAT_DIALOG_DATA) public data: DialogItemRenameData) {}
+
+ onNoClick(): void {
+ this.dialogRef.close();
+ }
+}
+
+ 45 Components
+46 Components
44 Interfaces
+45 Interfaces