Duplication modal on card

This commit is contained in:
2023-02-07 19:25:32 +01:00
parent d5ec52dc78
commit 48c4f4c2a5
2 changed files with 23 additions and 4 deletions

View File

@@ -17,6 +17,7 @@ export class CardComponent implements OnInit {
@Input() resource: string | undefined;
@Input() resource_id: string | null = null;
@Input() schema: string | undefined;
@Input() model = {};
@Input() is_modal: Boolean = false;
@Output() resourceCreated: EventEmitter<string> = new EventEmitter();
@@ -25,7 +26,6 @@ export class CardComponent implements OnInit {
form = new FormGroup({});
model = {};
fields: FormlyFieldConfig[] = [];
schemas = JSON.parse(`{}`);
@@ -101,8 +101,8 @@ export class CardComponent implements OnInit {
});
}
onDuplicate() {
onModelDuplicated(resource_id: string) {
this.modalService.dismissAll();
}
isCreateForm() {