Skip to content
This repository was archived by the owner on Jun 10, 2025. It is now read-only.
This repository was archived by the owner on Jun 10, 2025. It is now read-only.

fix: show the appropriate text when the menu is empty #14

@RoguedBear

Description

@RoguedBear

unable to resolve this till now, but in MessCodeScreen.vue, there are 3 conditions:

  • show the menu items
  • show the "nothing in menu" if menu is empty
  • otherwise show the "loading..." text

<div v-if="!menuEmpty && this.menu !== null">
<div v-for="menuEntry in sortedMenuByTime" :key="menuEntry">
<MenuItem :jsonMenu="JSON.parse(menuEntry.body)" />
</div>
</div>
<div v-else-if="menuEmpty && menu !== null">
Menu doesn't seem to contain anything right now :/
</div>
<div v-else><h2>Loading...</h2></div>

around midnight, when the menu is empty, ideally "nothing in menu" should be shown but instead no text is shown. ie condition 1 runs and renders a blank.

attempts to fix this boolean logic have been futile and resulting in broken functionality by getting stuck in condition 2 or 3 or exceptions on "undefined" menu making the component error out

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions