Skip to content

Commit c738fd3

Browse files
committed
In Frontend project Banner replaced with Alert
1 parent 456d0bf commit c738fd3

File tree

7 files changed

+22
-75
lines changed

7 files changed

+22
-75
lines changed

src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/Banner.vue

Lines changed: 0 additions & 50 deletions
This file was deleted.

src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/LookupCertification.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<v-container>
66
<v-row v-for="systemMessage in configStore.systemMessages" class="mt-10 mb-10">
77
<v-col v-if="systemMessage.portalTags && systemMessage.portalTags.includes('LOOKUP')" cols="12">
8-
<Banner type="info" :title="systemMessage.message ? systemMessage.message : ''" />
8+
<Alert title="Alert">{{ systemMessage.message ? systemMessage.message : "" }}</Alert>
99
</v-col>
1010
</v-row>
1111
<v-row>
@@ -120,10 +120,10 @@ import { formatDate } from "@/utils/format";
120120
import { isNumber } from "@/utils/formInput";
121121
import { postLookupCertificate } from "@/api/certification";
122122
import { useConfigStore } from "@/store/config";
123-
import Banner from "@/components/Banner.vue";
124123
import * as Rules from "../utils/formRules";
125124
import EceRecaptcha from "./inputs/EceRecaptcha.vue";
126125
import type { Components } from "@/types/openapi";
126+
import Alert from "@/components/Alert.vue";
127127
128128
interface LookupCertificationData {
129129
recaptchaToken: string;
@@ -134,7 +134,7 @@ type ReadonlyHeaders = VDataTable["$props"]["headers"];
134134
135135
export default defineComponent({
136136
name: "LookupCertification",
137-
components: { EceRecaptcha, EceTextField, Banner },
137+
components: { EceRecaptcha, EceTextField, Alert },
138138
setup() {
139139
const alertStore = useAlertStore();
140140
const lookupCertificationStore = useLookupCertificationStore();

src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/pages/Login.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<PageContainer :margin-top="false">
99
<div v-for="systemMessage in configStore.systemMessages">
1010
<div v-if="systemMessage.portalTags && systemMessage.portalTags.includes('LOGIN')" class="d-flex flex-column ga-3 mb-10">
11-
<Banner type="info" :title="systemMessage.message ? systemMessage.message : ''" />
11+
<Alert title="Alert">{{ systemMessage.message ? systemMessage.message : "" }}</Alert>
1212
</div>
1313
</div>
1414
<v-row>
@@ -40,11 +40,11 @@ import { useOidcStore } from "@/store/oidc";
4040
import { useUserStore } from "@/store/user";
4141
import { useConfigStore } from "@/store/config";
4242
import { useDisplay } from "vuetify";
43-
import Banner from "../Banner.vue";
43+
import Alert from "../Alert.vue";
4444
4545
export default defineComponent({
4646
name: "Login",
47-
components: { LoginCard, PageContainer, Banner },
47+
components: { LoginCard, PageContainer, Alert },
4848
setup() {
4949
const userStore = useUserStore();
5050
const oidcStore = useOidcStore();

src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/pages/PageNotFound.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<Banner type="error" title="404 Error - Page not found" />
2+
<Alert type="error" title="404 Error - Page not found" />
33
<v-container>
44
<div class="d-flex flex-column ga-10 mt-10">
55
<h3>The page you’re looking for might have been removed, moved, or is temporarily unavailable.</h3>
@@ -21,11 +21,11 @@
2121
</template>
2222

2323
<script lang="ts">
24-
import Banner from "@/components/Banner.vue";
2524
import { useRouter } from "vue-router";
25+
import Alert from "../Alert.vue";
2626
export default {
2727
name: "PageNotFound",
28-
components: { Banner },
28+
components: { Alert },
2929
setup() {
3030
const router = useRouter();
3131
return { router };
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
<template>
22
<Banner type="error" title="Sorry, this link is no longer valid" />
3+
34
</template>
45

56
<script lang="ts">
67
import { defineComponent } from "vue";
78
8-
import Banner from "@/components/Banner.vue";
9+
import Alert from "../Alert.vue";
910
1011
export default defineComponent({
1112
name: "Invalid",
12-
components: { Banner },
13+
components: { Alert },
1314
});
1415
</script>

src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/reference/inputs/EceCharacterReferenceDeclaration.vue

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
<template>
22
<v-row>
33
<v-col cols="12" v-for="systemMessage in configStore.systemMessages">
4-
<Banner
5-
v-if="systemMessage.portalTags && systemMessage.portalTags.includes('REFERENCES')"
6-
type="info"
7-
:title="systemMessage.message ? systemMessage.message : ''"
8-
/>
4+
<Alert v-if="systemMessage.portalTags && systemMessage.portalTags.includes('REFERENCES')" title="Alert">
5+
{{ systemMessage.message ? systemMessage.message : "" }}
6+
</Alert>
97
</v-col>
108
<v-col cols="12" md="12" lg="12" xl="12">
119
<v-row no-gutters>
@@ -74,11 +72,11 @@ import { useConfigStore } from "@/store/config";
7472
import { useWizardStore } from "@/store/wizard";
7573
import { CertificationType } from "@/utils/constant";
7674
import * as Rules from "@/utils/formRules";
77-
import Banner from "../../Banner.vue";
7875
import { cleanPreferredName } from "@/utils/functions";
76+
import Alert from "@/components/Alert.vue";
7977
export default defineComponent({
8078
name: "EceReferenceIntroduction",
81-
components: { Banner },
79+
components: { Alert },
8280
emits: {
8381
"update:model-value": (_reference: boolean) => true,
8482
},

src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/reference/inputs/EceWorkExperienceReferenceDeclaration.vue

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
<template>
22
<v-row>
33
<v-col cols="12" v-for="systemMessage in configStore.systemMessages">
4-
<Banner
5-
v-if="systemMessage.portalTags && systemMessage.portalTags.includes('REFERENCES')"
6-
type="info"
7-
:title="systemMessage.message ? systemMessage.message : ''"
8-
/>
4+
<Alert v-if="systemMessage.portalTags && systemMessage.portalTags.includes('REFERENCES')" title="Alert">
5+
{{ systemMessage.message ? systemMessage.message : "" }}
6+
</Alert>
97
</v-col>
108
<v-col cols="12" md="12" lg="12" xl="12">
119
<v-row no-gutters>
@@ -88,11 +86,11 @@ import { useConfigStore } from "@/store/config";
8886
import { useWizardStore } from "@/store/wizard";
8987
import { CertificationType, WorkExperienceType } from "@/utils/constant";
9088
import * as Rules from "@/utils/formRules";
91-
import Banner from "../../Banner.vue";
89+
import Alert from "@/components/Alert.vue";
9290
import { cleanPreferredName } from "@/utils/functions";
9391
export default defineComponent({
9492
name: "EceReferenceIntroduction",
95-
components: { Banner },
93+
components: { Alert },
9694
emits: {
9795
"update:model-value": (_reference: boolean) => true,
9896
},

0 commit comments

Comments
 (0)