Skip to content

Commit 75a9e18

Browse files
authored
Add return home link on not authorized error message. (#845)
1 parent 52ced63 commit 75a9e18

File tree

5 files changed

+10
-1
lines changed

5 files changed

+10
-1
lines changed

training-front-end/src/components/AdminGSPC.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
import { RepositoryFactory } from "./RepositoryFactory.vue";
1010
import { useStore } from "@nanostores/vue";
1111
import { profile } from "../stores/user.js";
12-
12+
13+
const base_url = import.meta.env.BASE_URL
1314
const adminRepository = RepositoryFactory.get('admin')
1415
const { withMessage } = helpers
1516
@@ -331,6 +332,7 @@
331332
GSA SmartPay team
332333
</a> to gain access.
333334
</USWDSAlert>
335+
<p><a :href="base_url">Return to Home</a></p>
334336
</section>
335337
</template>
336338
<style>

training-front-end/src/components/AdminPanel.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,5 +107,6 @@ const isAdminUser = computed(() => user.value.roles.includes('Admin'))
107107
GSA SmartPay team
108108
</a> to gain access.
109109
</USWDSAlert>
110+
<p><a :href="base_url">Return to Home</a></p>
110111
</section>
111112
</template>

training-front-end/src/components/AdminReportIndex.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import AdminUserReportDownload from "./AdminUserReport.vue"
88
import USWDSAlert from './USWDSAlert.vue'
99
10+
const base_url = import.meta.env.BASE_URL
1011
const error = ref()
1112
const user = useStore(profile)
1213
const isAdminUser = computed(() => user.value.roles.includes('Admin'))
@@ -90,5 +91,6 @@
9091
GSA SmartPay team
9192
</a> to gain access.
9293
</USWDSAlert>
94+
<p><a :href="base_url">Return to Home</a></p>
9395
</section>
9496
</template>

training-front-end/src/components/AdminSearchUser.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
1313
const PAGE_SIZE = 25
1414
15+
const base_url = import.meta.env.BASE_URL
1516
const user = useStore(profile)
1617
const isAdminUser = computed(() => user.value.roles.includes('Admin'))
1718
let currentPage = ref(0)
@@ -202,5 +203,6 @@
202203
GSA SmartPay team
203204
</a> to gain access.
204205
</USWDSAlert>
206+
<p><a :href="base_url">Return to Home</a></p>
205207
</section>
206208
</template>

training-front-end/src/components/AdminTrainingReport.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import AdminRepository from './AdminRepository.vue';
1414
import USWDSComboBox from "./form-components/USWDSComboBox.vue";
1515
16+
const base_url = import.meta.env.BASE_URL
1617
const error = ref()
1718
const user = useStore(profile)
1819
const isAdminUser = computed(() => user.value.roles.includes('Admin'))
@@ -211,5 +212,6 @@
211212
GSA SmartPay team
212213
</a> to gain access.
213214
</USWDSAlert>
215+
<p><a :href="base_url">Return to Home</a></p>
214216
</section>
215217
</template>

0 commit comments

Comments
 (0)