Merge code from ISS to FMG.

This commit is contained in:
Bryan Mauger 2023-01-24 12:07:55 -05:00
parent dfed22aa18
commit e2d17369bb
2 changed files with 6 additions and 1 deletions

View file

@ -7,6 +7,7 @@ const applicationConfig = {
CURRENT_ENVIRONMENT: process.env.VUE_APP_CURRENT_ENVIRONMENT, // "Localhost", "Dev", "QA", and "Prod" CURRENT_ENVIRONMENT: process.env.VUE_APP_CURRENT_ENVIRONMENT, // "Localhost", "Dev", "QA", and "Prod"
APPLICATION_NAME: "FixMyGlass", APPLICATION_NAME: "FixMyGlass",
APPLICATION_ABBREVIATION: "fmg", APPLICATION_ABBREVIATION: "fmg",
APPLICATION_QUERYSTRING: 'fmgPage',
SITE_ENTRY_TRIGGER_VALUE: "FixMyGlass", SITE_ENTRY_TRIGGER_VALUE: "FixMyGlass",
CASH_ACCOUNT_NUMBER: 167132, CASH_ACCOUNT_NUMBER: 167132,
}; };

View file

@ -19,7 +19,7 @@
<span v-else> <span v-else>
<router-link <router-link
:to="{ :to="{
query: { fmgPage: `${getLinkTargetFromCopy(copy)}` }, query: { [applicationQueryString]: `${getRouterLinkRouteFromCopy(copy)}` },
name: 'root', name: 'root',
}" }"
>{{ getLinkDisplayTextFromCopy(copy) }}</router-link >{{ getLinkDisplayTextFromCopy(copy) }}</router-link
@ -45,6 +45,7 @@ import {
getLinkDisplayTextFromCopy, getLinkDisplayTextFromCopy,
splitCMSCopyOnParagraphTag, splitCMSCopyOnParagraphTag,
} from "@/helpers/cms-content-helper"; } from "@/helpers/cms-content-helper";
import { applicationConfig } from '@/constants/application-config';
export default { export default {
name: "alert", name: "alert",
@ -75,6 +76,9 @@ export default {
}, },
}, },
computed: { computed: {
applicationQueryString() {
return applicationConfig.APPLICATION_QUERYSTRING;
},
alertHeadline() { alertHeadline() {
return this.manualHeadline return this.manualHeadline
? this.manualHeadline ? this.manualHeadline