Skip to content

Commit

Permalink
Hidden unwanted options in UI
Browse files Browse the repository at this point in the history
  • Loading branch information
MSDrao committed Dec 5, 2024
1 parent ca9f7c1 commit 18df58e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
8 changes: 4 additions & 4 deletions frontend/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ const paths = [
attrs: { to: "/" },
label: "Map",
},
{
attrs: { to: "/api" },
label: "API",
},
// {
// attrs: { to: "/api" },
// label: "API",
// },
{
attrs: { to: "/about" },
label: "About",
Expand Down
4 changes: 4 additions & 0 deletions frontend/src/components/DataViewDrawer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ const query = async (filters = {}) => {
body: JSON.stringify(filters)
});
const counts = await response.json()
// Delete the 'Figure model (Hand-drawn)' key
delete counts['Figure model (Hand-drawn)']
modelTypeCounts.value = counts
totalModels.value = Object.values(counts).reduce((acc, count) => acc + count, 0)
querying.value = false
Expand Down
8 changes: 4 additions & 4 deletions frontend/src/components/TheAppBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@
</nav>
</v-card>
<v-spacer></v-spacer>
<UserLogin @logged-in="login" v-if="!mdAndDown" :mobile="false" />
<!-- <UserLogin @logged-in="login" v-if="!mdAndDown" :mobile="false" /> -->

<v-app-bar-nav-icon @click="$emit('toggleMobileNav')" v-else />
<!-- <v-app-bar-nav-icon @click="$emit('toggleMobileNav')" v-else /> -->
</div>
</v-app-bar>
</template>
<script setup>
import { RouterLink } from 'vue-router'
// import { RouterLink } from 'vue-router'
import { useDisplay } from 'vuetify'
import UserLogin from "@/components/UserLogin.vue";
// import UserLogin from "@/components/UserLogin.vue";
import { useAuthStore } from '../stores/auth';
defineProps(['paths'])
defineEmits(['toggleMobileNav'])
Expand Down

0 comments on commit 18df58e

Please sign in to comment.