Skip to content

Commit

Permalink
chore: hide API Browser link while running rust servers
Browse files Browse the repository at this point in the history
  • Loading branch information
0xbrayo committed Oct 25, 2024
1 parent 291da6f commit 848aeaf
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/views/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ div
li #[a(href="https://forum.activitywatch.net/") Forum]
li #[a(href="https://discord.gg/vDskV9q") Discord]
li #[a(href="https://github.com/ActivityWatch/activitywatch") GitHub]
li #[a(href="/api/") API Browser]
li(v-if="!info.version.includes('rust')" ) #[a(href="/api/") API Browser]

div.col-md-6
h4 Want to know what we're working on?
Expand All @@ -70,7 +70,13 @@ div
</template>

<script lang="ts">
import { mapState } from 'pinia';
import { useServerStore } from '~/stores/server';
export default {
name: 'Home',
computed: {
...mapState(useServerStore, ['info']),
},
};
</script>

0 comments on commit 848aeaf

Please sign in to comment.