Browse Source

chore(gui-v2): move v-container to projects page

pull/2716/head
Braks 3 years ago committed by Pranav C
parent
commit
bc782362aa
  1. 4
      packages/nc-gui-v2/layouts/default.vue
  2. 42
      packages/nc-gui-v2/pages/projects/index.vue

4
packages/nc-gui-v2/layouts/default.vue

@ -9,9 +9,7 @@ export default {
<v-app-bar color="" />
<v-navigation-drawer :permanent="true" />
<v-main>
<v-container>
<slot />
</v-container>
<slot />
</v-main>
</v-layout>
</template>

42
packages/nc-gui-v2/pages/projects/index.vue

@ -27,24 +27,26 @@ onMounted(async () => {
</script>
<template>
<div class="pa-2 d-flex mb-10">
<v-spacer />
<v-btn size="small" class="caption text-capitalize mr-2" color="primary" @click="router.push('/projects/create')">
Create Project
</v-btn>
<v-btn size="small" class="caption text-capitalize mr-2" color="primary" @click="router.push('/projects/create')">
Create External Project
</v-btn>
</div>
<v-row>
<v-col v-for="project in projects" :key="project.id" cols="4">
<v-card @click="navigateToDashboard(project)">
<v-card-title>
<div class="text-center">
<h3>{{ project.title }}</h3>
</div>
</v-card-title>
</v-card>
</v-col>
</v-row>
<v-container>
<div class="pa-2 d-flex mb-10">
<v-spacer />
<v-btn size="small" class="caption text-capitalize mr-2" color="primary" @click="router.push('/projects/create')">
Create Project
</v-btn>
<v-btn size="small" class="caption text-capitalize mr-2" color="primary" @click="router.push('/projects/create')">
Create External Project
</v-btn>
</div>
<v-row>
<v-col v-for="project in projects" :key="project.id" cols="4">
<v-card @click="navigateToDashboard(project)">
<v-card-title>
<div class="text-center">
<h3>{{ project.title }}</h3>
</div>
</v-card-title>
</v-card>
</v-col>
</v-row>
</v-container>
</template>

Loading…
Cancel
Save