Skip to content

Commit

Permalink
attempt: new form button
Browse files Browse the repository at this point in the history
  • Loading branch information
abdahmed22 committed Aug 15, 2024
1 parent c2bb01d commit bfa7858
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 2 deletions.
18 changes: 18 additions & 0 deletions client/src/components/projects/ProjectForm.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<template>
<v-card class="pa-2">
Hello!
</v-card>
</template>

<script lang="ts">
export default {
name: 'ProjectForm',
setup () {
return {
}
},
}
</script>
25 changes: 23 additions & 2 deletions client/src/layouts/NavigationBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,22 @@
/>
</template>
<v-list>
<v-list-item />
<v-list-item
v-for="(item,index) in newForms"
:key="index"
>
<v-btn>
{{ item.displayName }}

<v-overlay
activator="parent"
location-strategy="connected"
scroll-strategy="reposition"
>
<item.component />
</v-overlay>
</v-btn>
</v-list-item>
<!-- to be integrated with new forms -->
</v-list>
</v-menu>
Expand Down Expand Up @@ -75,6 +90,7 @@
import { ref } from 'vue'
import { RouterLink } from 'vue-router'
import { useCurrentRouteStore } from '../stores/route'
import ProjectForm from '@/components/projects/ProjectForm.vue'
type AppRoute = {
displayName: string,
Expand Down Expand Up @@ -190,7 +206,12 @@
]
},
newForms () {
return []
return [
{
displayName: 'New Project',
component: ProjectForm,
},
]
},
},
}
Expand Down

0 comments on commit bfa7858

Please sign in to comment.