Merge branch 'bugfix/keep-entity-action-dialog-open' into feature/remove-parent-from-detail-model
This commit is contained in:
@@ -8,7 +8,7 @@ export class UmbCreateDataTypeEntityAction extends UmbEntityActionBase<UmbDataTy
|
||||
if (!this.repository) throw new Error('Repository is not available');
|
||||
|
||||
const modalManager = await this.getContext(UMB_MODAL_MANAGER_CONTEXT);
|
||||
modalManager.open(this, UMB_DATA_TYPE_CREATE_OPTIONS_MODAL, {
|
||||
const modalContext = modalManager.open(this, UMB_DATA_TYPE_CREATE_OPTIONS_MODAL, {
|
||||
data: {
|
||||
parent: {
|
||||
entityType: this.entityType,
|
||||
@@ -16,5 +16,7 @@ export class UmbCreateDataTypeEntityAction extends UmbEntityActionBase<UmbDataTy
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
await modalContext.onSubmit();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ export class UmbCreateDataTypeEntityAction extends UmbEntityActionBase<UmbDocume
|
||||
if (!this.repository) throw new Error('Repository is not available');
|
||||
|
||||
const modalManager = await this.getContext(UMB_MODAL_MANAGER_CONTEXT);
|
||||
modalManager.open(this, UMB_DOCUMENT_TYPE_CREATE_OPTIONS_MODAL, {
|
||||
const modalContext = modalManager.open(this, UMB_DOCUMENT_TYPE_CREATE_OPTIONS_MODAL, {
|
||||
data: {
|
||||
parent: {
|
||||
unique: this.unique,
|
||||
@@ -16,5 +16,7 @@ export class UmbCreateDataTypeEntityAction extends UmbEntityActionBase<UmbDocume
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
await modalContext.onSubmit();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ export class UmbDataTypeCreateOptionsModalElement extends UmbModalBaseElement<Um
|
||||
|
||||
// close the modal when navigating to data type
|
||||
#onNavigate() {
|
||||
this._rejectModal();
|
||||
this._submitModal();
|
||||
}
|
||||
|
||||
#getCreateHref() {
|
||||
|
||||
@@ -28,11 +28,13 @@ export class UmbCreateDocumentEntityAction extends UmbEntityActionBase<UmbDocume
|
||||
}
|
||||
|
||||
const modalManager = await this.getContext(UMB_MODAL_MANAGER_CONTEXT);
|
||||
modalManager.open(this, UMB_DOCUMENT_CREATE_OPTIONS_MODAL, {
|
||||
const modalContext = modalManager.open(this, UMB_DOCUMENT_CREATE_OPTIONS_MODAL, {
|
||||
data: {
|
||||
document: documentItem ? { unique: documentItem.unique } : null,
|
||||
documentType: documentItem ? { unique: documentItem.documentType.unique } : null,
|
||||
},
|
||||
});
|
||||
|
||||
await modalContext.onSubmit();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ export class UmbCreateMediaTypeEntityAction extends UmbEntityActionBase<UmbMedia
|
||||
if (!this.repository) throw new Error('Repository is not available');
|
||||
|
||||
const modalManager = await this.getContext(UMB_MODAL_MANAGER_CONTEXT);
|
||||
modalManager.open(this, UMB_MEDIA_TYPE_CREATE_OPTIONS_MODAL, {
|
||||
const modalContext = modalManager.open(this, UMB_MEDIA_TYPE_CREATE_OPTIONS_MODAL, {
|
||||
data: {
|
||||
parent: {
|
||||
unique: this.unique,
|
||||
@@ -16,5 +16,7 @@ export class UmbCreateMediaTypeEntityAction extends UmbEntityActionBase<UmbMedia
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
await modalContext.onSubmit();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -38,8 +38,10 @@ export class UmbCreateMediaEntityAction extends UmbEntityActionBase<UmbMediaDeta
|
||||
|
||||
private async _openModal(modalData: UmbMediaCreateOptionsModalData) {
|
||||
const modalManager = await this.getContext(UMB_MODAL_MANAGER_CONTEXT);
|
||||
modalManager.open(this, UMB_MEDIA_CREATE_OPTIONS_MODAL, {
|
||||
const modalContext = modalManager.open(this, UMB_MEDIA_CREATE_OPTIONS_MODAL, {
|
||||
data: modalData,
|
||||
});
|
||||
|
||||
await modalContext.onSubmit();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ export class UmbScriptCreateOptionsEntityAction extends UmbEntityActionBase<neve
|
||||
if (!this.repository) throw new Error('Repository is not available');
|
||||
|
||||
const modalManager = await this.getContext(UMB_MODAL_MANAGER_CONTEXT);
|
||||
modalManager.open(this, UMB_SCRIPT_CREATE_OPTIONS_MODAL, {
|
||||
const modalContext = modalManager.open(this, UMB_SCRIPT_CREATE_OPTIONS_MODAL, {
|
||||
data: {
|
||||
parent: {
|
||||
entityType: this.entityType,
|
||||
@@ -15,5 +15,7 @@ export class UmbScriptCreateOptionsEntityAction extends UmbEntityActionBase<neve
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
await modalContext.onSubmit();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ export class UmbStylesheetCreateOptionsEntityAction extends UmbEntityActionBase<
|
||||
if (!this.repository) throw new Error('Repository is not available');
|
||||
|
||||
const modalManager = await this.getContext(UMB_MODAL_MANAGER_CONTEXT);
|
||||
modalManager.open(this, UMB_STYLESHEET_CREATE_OPTIONS_MODAL, {
|
||||
const modalContext = modalManager.open(this, UMB_STYLESHEET_CREATE_OPTIONS_MODAL, {
|
||||
data: {
|
||||
parent: {
|
||||
unique: this.unique,
|
||||
@@ -15,5 +15,7 @@ export class UmbStylesheetCreateOptionsEntityAction extends UmbEntityActionBase<
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
await modalContext.onSubmit();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user