Skip to content

Commit 9ea531a

Browse files
committed
chore: hide API Browser link while running rust servers
1 parent 291da6f commit 9ea531a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/views/Home.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ div
5353
li #[a(href="https://forum.activitywatch.net/") Forum]
5454
li #[a(href="https://discord.gg/vDskV9q") Discord]
5555
li #[a(href="https://github.com/ActivityWatch/activitywatch") GitHub]
56-
li #[a(href="/api/") API Browser]
56+
li(v-if="!info.version.includes('rust')" ) #[a(href="/api/") API Browser]
5757

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

7272
<script lang="ts">
73+
import { mapState } from 'pinia';
74+
import { useServerStore } from '~/stores/server';
75+
7376
export default {
7477
name: 'Home',
78+
computed: {
79+
...mapState(useServerStore, ['info']),
80+
},
7581
};
7682
</script>

0 commit comments

Comments
 (0)