diff --git a/src/pages/account/account.ts b/src/pages/account/account.ts index ed9acb9..4edfcd2 100755 --- a/src/pages/account/account.ts +++ b/src/pages/account/account.ts @@ -27,6 +27,7 @@ declare global { initializeEventListeners: () => void; showProcess: () => void; showProcessCreation: () => void; + showDocumentValidation: () => void; updateNavbarName: (name: string) => void; updateNavbarLastName: (lastName: string) => void; showAlert: (title: string, text?: string, icon?: string) => void; @@ -49,6 +50,7 @@ import { getCorrectDOM } from '../../utils/document.utils'; import accountStyle from '../../../public/style/account.css?inline'; import Services from '../../services/service'; import { getProcessCreation } from './process-creation'; +import { getDocumentValidation } from './document-validation'; let isAddingRow = false; let currentRow: HTMLTableRowElement | null = null; @@ -176,6 +178,7 @@ class AccountElement extends HTMLElement { + @@ -186,6 +189,7 @@ class AccountElement extends HTMLElement {
+
@@ -197,6 +201,7 @@ class AccountElement extends HTMLElement { window.showWallet = () => this.showWallet(); window.showProcess = () => this.showProcess(); window.showProcessCreation = () => this.showProcessCreation(); + window.showDocumentValidation = () => this.showDocumentValidation(); window.showData = () => this.showData(); window.addWalletRow = () => this.addWalletRow(); window.confirmWalletRow = () => this.confirmWalletRow(); @@ -835,6 +840,14 @@ private async showProcessCreation(): Promise { } } +private async showDocumentValidation(): Promise { + this.hideAllContent(); + const container = this.shadowRoot?.getElementById('document-validation-content'); + if (container) { + getDocumentValidation(container); + } +} + private async showProcess(): Promise { currentMode = 'process'; this.hideAllContent();