refs #1857. Rename image.
testing/ogGui-multibranch/pipeline/head There was a failure building this commit
Details
testing/ogGui-multibranch/pipeline/head There was a failure building this commit
Details
parent
2958e05c98
commit
dad3635f4f
|
@ -101,6 +101,8 @@
|
|||
(click)="toggleAction(image, 'status')">Checkear estado imagen </button>
|
||||
<button mat-menu-item [disabled]="!image.imageFullsum || image.status !== 'success'"
|
||||
(click)="toggleAction(image, 'convert-image-to-virtual')">Convertir imagen en virtual </button>
|
||||
<button mat-menu-item [disabled]="!image.imageFullsum || image.status !== 'success'" (click)="toggleAction(image, 'rename')">Renombrar imagen</button>
|
||||
|
||||
</mat-menu>
|
||||
</td>
|
||||
</ng-container>
|
||||
|
@ -117,4 +119,4 @@
|
|||
</mat-dialog-content>
|
||||
<mat-dialog-actions class="action-container">
|
||||
<button class="ordinary-button" (click)="onNoClick()">Cerrar</button>
|
||||
</mat-dialog-actions>
|
||||
</mat-dialog-actions>
|
||||
|
|
|
@ -16,6 +16,7 @@ import {ExportImageComponent} from "../../images/export-image/export-image.compo
|
|||
import {BackupImageComponent} from "../backup-image/backup-image.component";
|
||||
import {ConvertImageToVirtualComponent} from "../convert-image-to-virtual/convert-image-to-virtual.component";
|
||||
import {EditImageComponent} from "../edit-image/edit-image.component";
|
||||
import {RenameImageComponent} from "../rename-image/rename-image.component";
|
||||
|
||||
@Component({
|
||||
selector: 'app-show-monolitic-images',
|
||||
|
@ -43,7 +44,7 @@ export class ShowMonoliticImagesComponent implements OnInit {
|
|||
{
|
||||
columnDef: 'name',
|
||||
header: 'Nombre de imagen',
|
||||
cell: (image: any) => `${image.image.name}`
|
||||
cell: (image: any) => `${image.name}`
|
||||
},
|
||||
{
|
||||
columnDef: 'version',
|
||||
|
@ -352,6 +353,18 @@ export class ShowMonoliticImagesComponent implements OnInit {
|
|||
}
|
||||
});
|
||||
break;
|
||||
case 'rename':
|
||||
this.dialog.open(RenameImageComponent, {
|
||||
width: '600px',
|
||||
data: {
|
||||
imageImageRepository: image
|
||||
}
|
||||
}).afterClosed().subscribe((result) => {
|
||||
if (result) {
|
||||
this.loadData();
|
||||
}
|
||||
});
|
||||
break;
|
||||
default:
|
||||
console.error('Acción no soportada:', action);
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue