Skip to content

Commit

Permalink
Removed help links/route. (#304)
Browse files Browse the repository at this point in the history
Co-authored-by: weskubo-cgi <[email protected]>
  • Loading branch information
weskubo-cgi and weskubo-cgi authored Jul 24, 2024
1 parent 7f29aac commit 2ad9b7e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 16 deletions.
14 changes: 7 additions & 7 deletions frontend/src/components/TheHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,21 @@
<v-row class="align-center">
<v-col v-if="showMessagingIcon" style="width: 70px">
<div>
<v-btn @click="$router.push({ name: 'messaging' })" aria-label="Messages/Notifications" id="mail_box_button" rounded v-if="!isNaN(messageNotificationCount)">
<v-btn v-if="!isNaN(messageNotificationCount)" id="mail_box_button" aria-label="Messages/Notifications" rounded @click="$router.push({ name: 'messaging' })">
<v-badge color="error" class="pt-0" :content="messageNotificationCount" bottom right overlap offset-x="8" offset-y="28">
<v-icon aria-hidden="false" icon="mdi-email-outline" size="40" color="white" />
</v-badge>
</v-btn>
<v-skeleton-loader type="chip" class="chip-loader" v-else />
<v-skeleton-loader v-else type="chip" class="chip-loader" />
</div>
</v-col>
<v-col class="px-0" style="width: 50px">
<v-btn @click="$router.push({ name: 'help' })" aria-label="Help" id="help_button" rounded>
<v-col v-if="false" class="px-0" style="width: 50px">
<v-btn id="help_button" aria-label="Help" rounded @click="$router.push({ name: 'help' })">
<v-icon aria-hidden="false" icon="mdi-help-circle-outline" size="38" color="white" />
</v-btn>
</v-col>
<v-col class="px-0" style="width: 50px">
<v-btn @click="$router.push({ name: 'home' })" aria-label="Home" id="home_button" rounded>
<v-btn id="home_button" aria-label="Home" rounded @click="$router.push({ name: 'home' })">
<v-icon aria-hidden="false" icon="mdi-home-outline" size="40" color="white" />
</v-btn>
</v-col>
Expand All @@ -47,8 +47,8 @@
</v-chip>
</template>
<v-list style="background-color: #003366; color: white">
<v-list-item class="user-link" id="impersonate_button" v-if="isMinistryUser" :to="{ name: 'impersonate' }" title="Impersonate" />
<v-list-item class="user-link" id="logout_button" :href="logoutPath" title="Log Out" />
<v-list-item v-if="isMinistryUser" id="impersonate_button" class="user-link" :to="{ name: 'impersonate' }" title="Impersonate" />
<v-list-item id="logout_button" class="user-link" :href="logoutPath" title="Log Out" />
</v-list>
</v-menu>
</v-col>
Expand Down
5 changes: 3 additions & 2 deletions frontend/src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ import SupplementarySubmitView from '@/views/supp-allowances/SupplementarySubmit
const router = createRouter({
history: createWebHistory(),
base: import.meta.env.BASE_URL,
scrollBehavior(to, from, savedPosition) {
scrollBehavior(to, _from, _savedPosition) {
if (to.hash) {
return new Promise((resolve, reject) => {
return new Promise((resolve, _reject) => {
setTimeout(() => {
resolve({
el: to.hash,
Expand Down Expand Up @@ -269,6 +269,7 @@ const router = createRouter({
component: HelpView,
meta: {
requiresAuth: true,
hidden: true,
},
},
{
Expand Down
14 changes: 7 additions & 7 deletions frontend/src/views/HomeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,32 +25,32 @@
</v-row>
<v-row v-else>
<v-col v-if="hasPermission(PERMISSIONS.SEARCH_VIEW_REPORTS)" cols="12" md="6" lg="4">
<v-card class="basic-card" id="reporting-card" prepend-icon="mdi-file-chart-outline" title="Reporting" @click="$router.push({ name: 'reporting' })">
<v-card id="reporting-card" class="basic-card" prepend-icon="mdi-file-chart-outline" title="Reporting" @click="$router.push({ name: 'reporting' })">
<v-card-text>Complete or view current or past Monthly Reports and submit financial reports.</v-card-text>
</v-card>
</v-col>
<v-col v-if="hasPermission([PERMISSIONS.VIEW_FUNDING_AGREEMENT, PERMISSIONS.VIEW_FUNDING_AMOUNTS])" cols="12" md="6" lg="4">
<v-card class="basic-card" id="funding-card" prepend-icon="mdi-currency-usd" title="Funding" @click="$router.push({ name: 'funding-overview' })">
<v-card id="funding-card" class="basic-card" prepend-icon="mdi-currency-usd" title="Funding" @click="$router.push({ name: 'funding-overview' })">
<v-card-text>Review operational funding details by month or funding envelopes.</v-card-text>
</v-card>
</v-col>
<v-col v-if="hasPermission([PERMISSIONS.MANAGE_NOTIFICATIONS])" cols="12" md="6" lg="4">
<v-card class="basic-card" id="assistance-card" prepend-icon="mdi-message-text-outline" title="Assistance Request" @click="toggleAssistanceRequestDialog">
<v-card id="assistance-card" class="basic-card" prepend-icon="mdi-message-text-outline" title="Assistance Request" @click="toggleAssistanceRequestDialog">
<v-card-text>Have Questions? Send us a message.</v-card-text>
</v-card>
</v-col>
<v-col v-if="hasPermission(PERMISSIONS.VIEW_APPLICATIONS)" cols="12" md="6" lg="4">
<v-card class="basic-card" id="applications-card" prepend-icon="mdi-file-document-multiple-outline" title="Applications" @click="$router.push({ name: 'applications-history' })">
<v-card id="applications-card" class="basic-card" prepend-icon="mdi-file-document-multiple-outline" title="Applications" @click="$router.push({ name: 'applications-history' })">
<v-card-text>Submit new or view applications for $10 a Day funding or Allowances.</v-card-text>
</v-card>
</v-col>
<v-col v-if="hasPermission(PERMISSIONS.VIEW_ORG_FACILITY, PERMISSIONS.MANAGE_USERS_VIEW)" cols="12" md="6" lg="4">
<v-card class="basic-card" id="account-mgmt-card" prepend-icon="mdi-cog-outline" title="Account Management" @click="$router.push({ name: 'account-mgmt' })">
<v-card id="account-mgmt-card" class="basic-card" prepend-icon="mdi-cog-outline" title="Account Management" @click="$router.push({ name: 'account-mgmt' })">
<v-card-text>Maintain or edit organization or facility information and request a change.</v-card-text>
</v-card>
</v-col>
<v-col cols="12" md="6" lg="4">
<v-card class="basic-card" id="help-card" prepend-icon="mdi-help-circle-outline" title="Help and Resources" @click="$router.push({ name: 'help' })">
<v-col v-if="false" cols="12" md="6" lg="4">
<v-card id="help-card" class="basic-card" prepend-icon="mdi-help-circle-outline" title="Help and Resources" @click="$router.push({ name: 'help' })">
<v-card-text>Need support? Find program training tools and resources, technical help, or call us.</v-card-text>
</v-card>
</v-col>
Expand Down

0 comments on commit 2ad9b7e

Please sign in to comment.