Signed-off-by: Pranav C <pranavxc@gmail.com>
@ -1,7 +1,12 @@
<script>
export default {
name: 'Default',
<script lang="ts" setup>
import { navigateTo } from '#app'
const route = useRoute()
const openDiscord = () => {
// shell.openExternal('https://discord.gg/5RgZmkW')
}
const isDashboard = computed(() => {
return route.path && (route.path === '/nc' || route.path === '/nc/' || route.path.startsWith('/nc/'))
})
</script>
<template>
@ -39,7 +39,7 @@ const createProject = async () => {
external: true
});
await $router.push(`/dashboard/${result.id}`);
await $router.push(`/nc/${result.id}`);
} catch (e: any) {
// todo: toast
toast.error(await extractSdkResponseErrorMsg(e));
@ -19,7 +19,7 @@ const createProject = async () => {
title: name.value,
await $router.push(`/dashboard/${result.id}`)
await $router.push(`/nc/${result.id}`)
} catch (e:any) {
$toast.error(await extractSdkResponseErrorMsg(e)).goAway(3000)
@ -25,7 +25,7 @@ const projects = ref(response.list)
</div>
<v-row>
<v-col v-for="project of projects" :key="project.id" cols="4">
<v-card @click="navigateTo(`/dashboard/${project.id}`)">
<v-card @click="navigateTo(`/nc/${project.id}`)">
<v-card-title>
<div class="text-center">
<h3>{{ project.title }}</h3>