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

Loading…
Cancel
Save