clean up
This commit is contained in:
@@ -21,11 +21,14 @@ export class UmbCreateDocumentModalElement extends UmbModalBaseElement<
|
||||
async firstUpdated() {
|
||||
const documentId = this.data?.id || null;
|
||||
|
||||
this.#retrieveAllowedChildrenOf(documentId);
|
||||
this.#retrieveHeadline(documentId);
|
||||
this.#retrieveAllowedDocumentTypesOf(documentId);
|
||||
|
||||
if (documentId) {
|
||||
this.#retrieveHeadline(documentId);
|
||||
}
|
||||
}
|
||||
|
||||
async #retrieveAllowedChildrenOf(id: string | null) {
|
||||
async #retrieveAllowedDocumentTypesOf(id: string | null) {
|
||||
const { data } = await this.#documentRepository.requestAllowedDocumentTypesOf(id);
|
||||
|
||||
if (data) {
|
||||
|
||||
@@ -172,7 +172,6 @@ export class UmbDocumentServerDataSource
|
||||
/**
|
||||
* Get the allowed document types for root
|
||||
* @param {string} id
|
||||
* @return {*}
|
||||
* @memberof UmbDocumentTypeServerDataSource
|
||||
*/
|
||||
async getAllowedDocumentTypesAtRoot() {
|
||||
@@ -183,7 +182,6 @@ export class UmbDocumentServerDataSource
|
||||
/**
|
||||
* Get the allowed document types for a given parent id
|
||||
* @param {string} id
|
||||
* @return {*}
|
||||
* @memberof UmbDocumentTypeServerDataSource
|
||||
*/
|
||||
async getAllowedDocumentTypesOf(id: string) {
|
||||
|
||||
Reference in New Issue
Block a user