File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33 * SPDX-License-Identifier: AGPL-3.0-or-later
44 */
55
6+ import { ref } from 'vue'
7+
68interface ActionCodes {
79 REDIRECT : number
810 CREATE_ACCOUNT : number
@@ -53,6 +55,14 @@ export const ACTION_CODE_TO_ROUTE: Readonly<ActionCodeToRoute> = Object.freeze({
5355 [ ACTION_CODES . INCOMPLETE_SETUP ] : 'Incomplete' ,
5456} )
5557
58+ /**
59+ * Shared reactive ref for the initial action code injected by the server
60+ * (#initial-state-libresign-action). Written once by router.ts beforeEach,
61+ * read by App.vue. Lives here (not in router.ts) to avoid App.vue triggering
62+ * the router module's side effects (createRouter, generateUrl) on import.
63+ */
64+ export const initialActionCode = ref ( 0 )
65+
5666export const REQUIREMENT_TO_MODAL : Readonly < RequirementToModal > = Object . freeze ( {
5767 identificationDocuments : 'uploadDocuments' ,
5868 emailCode : 'emailToken' ,
You can’t perform that action at this time.
0 commit comments