Browse Source

feat(gui-v2): navigate to subpages on icon click

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
pull/2716/head
Braks 2 years ago committed by Pranav C
parent
commit
d1f89495b5
  1. 12
      packages/nc-gui-v2/pages/projects/index.vue

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

@ -1,4 +1,5 @@
<script lang="ts" setup> <script lang="ts" setup>
import { navigateTo } from '#app'
import MaterialSymbolsFormatListBulletedRounded from '~icons/material-symbols/format-list-bulleted-rounded' import MaterialSymbolsFormatListBulletedRounded from '~icons/material-symbols/format-list-bulleted-rounded'
import MaterialSymbolsGridView from '~icons/material-symbols/grid-view' import MaterialSymbolsGridView from '~icons/material-symbols/grid-view'
@ -55,8 +56,14 @@ const navDrawerOptions = [
</h2> </h2>
<div class="self-end flex text-xl"> <div class="self-end flex text-xl">
<MaterialSymbolsFormatListBulletedRounded class="cursor-pointer p-1 hover:bg-gray-300/50 rounded-full" /> <MaterialSymbolsFormatListBulletedRounded
<MaterialSymbolsGridView class="cursor-pointer p-1 hover:bg-gray-300/50 rounded-full" /> class="cursor-pointer p-1 hover:bg-gray-300/50 rounded-full"
@click="navigateTo('/projects')"
/>
<MaterialSymbolsGridView
class="cursor-pointer p-1 hover:bg-gray-300/50 rounded-full"
@click="navigateTo('/projects/list')"
/>
</div> </div>
</div> </div>
<v-divider class="mb-3" /> <v-divider class="mb-3" />
@ -65,4 +72,3 @@ const navDrawerOptions = [
</v-container> </v-container>
</NuxtLayout> </NuxtLayout>
</template> </template>

Loading…
Cancel
Save