Skip to content

Commit

Permalink
requested changes made in TopicHome.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
Sudarshan-21 authored Apr 4, 2024
1 parent 3cf9d1e commit 254a842
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions zimui/src/components/TopicHome.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script setup lang="ts">
import TopicSection from '../components/TopicSection.vue'
import TopicCard from '../components/TopicCard.vue'
import { onMounted, ref, watch, computed } from 'vue'
import { onMounted, ref, watch } from 'vue'
import Topic from '@/types/Topic'
import { useMainStore } from '../stores/main'
import TopicSectionType from '@/types/TopicSection'
Expand All @@ -22,8 +22,6 @@ const topic = ref<Topic>()
const dataLoaded = ref(false)
const $loading = useLoading()
const errMessage = computed(() => main.errorMessage)
/** Retrieve topic data */
const fetchData = async function () {
Expand Down Expand Up @@ -93,12 +91,10 @@ const goToPreviousPage = () => {
</script>

<template>
<div>
<div v-if="errMessage" class="error-message" >
Error: {{ errMessage }}
<div v-if="main.errorMessage" class="error-message" >
Error: {{ main.errorMessage }}
</div>
<div v-else>
<div v-if="topic" class="content">
<div v-else-if="topic" class="content">
<nav
class="navbar navbar px-0 channel-navbar navbar-light fixed-top navbar-expand shadow"
>
Expand Down Expand Up @@ -215,8 +211,6 @@ const goToPreviousPage = () => {
</div>
</div>
</div>
</div>
</div>
</template>

<style scoped>
Expand Down

0 comments on commit 254a842

Please sign in to comment.