diff --git a/src/components/test-slot/test-outcome/test-outcome.ts b/src/components/test-slot/test-outcome/test-outcome.ts index 9d3f03ead..0c04e0e2e 100644 --- a/src/components/test-slot/test-outcome/test-outcome.ts +++ b/src/components/test-slot/test-outcome/test-outcome.ts @@ -31,7 +31,9 @@ import { CategoryWhitelistProvider } from '@providers/category-whitelist/categor import { PreviewModeModal } from '@pages/fake-journal/components/preview-mode-modal/preview-mode-modal'; import { ContinueUnuploadedTest } from '@pages/unuploaded-tests/unuploaded-tests.actions'; import { AccessibilityService } from '@providers/accessibility/accessibility.service'; -import { JournalFutureTestModal } from '@pages/journal/components/journal-future-test-modal/journal-future-test-modal'; +// import { +// JournalFutureTestModal +// } from '@pages/journal/components/journal-future-test-modal/journal-future-test-modal'; @Component({ selector: 'test-outcome', @@ -249,20 +251,24 @@ export class TestOutcomeComponent implements OnInit { } async rekeyDelegatedTest(): Promise { + /* TODO Re-introduce in 4.13 + (should be as simple as uncommenting the code and updating the visuals to reflect the new design) + */ + //compare the current date to the date of the test without factoring in time to see if the test is in the future - if (new Date(new Date(this.slot.slotDetail.start).toDateString()) > new Date(new Date().toDateString())) { - const modal: HTMLIonModalElement = await this.modalController.create({ - component: JournalFutureTestModal, - cssClass: 'mes-modal-alert text-zoom-regular', - }); - await modal.present(); - const { data } = await modal.onDidDismiss(); - if (data === ModalEvent.START) { - await this.rekeyDelegatedTestStart(); - } - } else { - await this.rekeyDelegatedTestStart(); - } + // if (new Date(new Date(this.slot.slotDetail.start).toDateString()) > new Date(new Date().toDateString())) { + // const modal: HTMLIonModalElement = await this.modalController.create({ + // component: JournalFutureTestModal, + // cssClass: 'mes-modal-alert text-zoom-regular', + // }); + // await modal.present(); + // const { data } = await modal.onDidDismiss(); + // if (data === ModalEvent.START) { + // await this.rekeyDelegatedTestStart(); + // } + // } else { + await this.rekeyDelegatedTestStart(); + // } } displayRekeyModal = async (): Promise => {