Skip to content

Commit

Permalink
Added a "dining hall closed" message if the dining hall is closed.
Browse files Browse the repository at this point in the history
  • Loading branch information
That-Thing committed Nov 23, 2024
1 parent 34be636 commit 2cd240e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/views/HomeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { useToast } from 'vue-toast-notification';
import 'vue-toast-notification/dist/theme-sugar.css';
import MenuItemComponent from '../components/menuItemComponent.vue';
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
import { faFilter } from '@fortawesome/free-solid-svg-icons';
import { faFilter, faShopSlash } from '@fortawesome/free-solid-svg-icons';
const API_URL = import.meta.env.VITE_APP_API_URL;
const $toast = useToast();
Expand Down Expand Up @@ -274,7 +274,7 @@ const toggleLabel = (label) => {
<span class="visually-hidden">Loading...</span>
</div>
</div>
<div v-else>
<div v-else-if="paginatedMenuItems.length > 0">
<div class="row mb-3">
<div class="col-12 col-md-6 mb-2 mb-md-0">
<h5 class="card-title mb-2">Menu</h5>
Expand Down Expand Up @@ -335,6 +335,10 @@ const toggleLabel = (label) => {
</ul>
</nav>
</div>
<div v-else class="w-100 text-center">
<h4>This dining hall is closed today</h4>
<FontAwesomeIcon :icon="faShopSlash" size="3x" />
</div>
</div>
</div>
</div>
Expand Down

0 comments on commit 2cd240e

Please sign in to comment.