Duplication modal on card
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user