Browse Source

refactor(gui): remove dropdown for create project from project list page

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/4703/head
Raju Udava 2 years ago
parent
commit
6c99ad1c9d
  1. 72
      packages/nc-gui/pages/index/index/index.vue

72
packages/nc-gui/pages/index/index/index.vue

@ -174,42 +174,42 @@ const copyProjectMeta = async () => {
<div class="flex-1" />
<a-dropdown v-if="isUIAllowed('projectCreate', true)" :trigger="['click']" overlay-class-name="nc-dropdown-create-project">
<button class="nc-new-project-menu mt-4 md:mt-0">
<span class="flex items-center w-full">
{{ $t('title.newProj') }}
<MdiMenuDown class="menu-icon" />
</span>
</button>
<template #overlay>
<a-menu class="!py-0 rounded">
<a-menu-item>
<div
v-e="['c:project:create:xcdb']"
class="nc-project-menu-item group nc-create-xc-db-project"
@click="navigateTo('/create')"
>
<MdiPlusOutline class="group-hover:text-accent" />
<div>{{ $t('activity.createProject') }}</div>
</div>
</a-menu-item>
<a-menu-item v-if="appInfo.connectToExternalDB">
<div
v-e="['c:project:create:extdb']"
class="nc-project-menu-item group nc-create-external-db-project"
@click="navigateTo('/create-external')"
>
<MdiDatabaseOutline class="group-hover:text-accent" />
<div v-html="$t('activity.createProjectExtended.extDB')" />
</div>
</a-menu-item>
</a-menu>
</template>
</a-dropdown>
<!-- <a-dropdown v-if="isUIAllowed('projectCreate', true)" :trigger="['click']" overlay-class-name="nc-dropdown-create-project"> -->
<button v-if="isUIAllowed('projectCreate', true)" class="nc-new-project-menu mt-4 md:mt-0" @click="navigateTo('/create')">
<span class="flex items-center w-full">
{{ $t('title.newProj') }}
<!-- <MdiMenuDown class="menu-icon" /> -->
</span>
</button>
<!-- <template #overlay> -->
<!-- <a-menu class="!py-0 rounded"> -->
<!-- <a-menu-item> -->
<!-- <div -->
<!-- v-e="['c:project:create:xcdb']" -->
<!-- class="nc-project-menu-item group nc-create-xc-db-project" -->
<!-- @click="navigateTo('/create')" -->
<!-- > -->
<!-- <MdiPlusOutline class="group-hover:text-accent" /> -->
<!-- <div>{{ $t('activity.createProject') }}</div> -->
<!-- </div> -->
<!-- </a-menu-item> -->
<!-- <a-menu-item v-if="appInfo.connectToExternalDB"> -->
<!-- <div -->
<!-- v-e="['c:project:create:extdb']" -->
<!-- class="nc-project-menu-item group nc-create-external-db-project" -->
<!-- @click="navigateTo('/create-external')" -->
<!-- > -->
<!-- <MdiDatabaseOutline class="group-hover:text-accent" /> -->
<!-- <div v-html="$t('activity.createProjectExtended.extDB')" /> -->
<!-- </div> -->
<!-- </a-menu-item> -->
<!-- </a-menu> -->
<!-- </template> -->
<!-- </a-dropdown> -->
</div>
<!--

Loading…
Cancel
Save