Browse Source

refactor: replace import excel menu with button

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/789/head
Pranav C 3 years ago
parent
commit
7dac133ec5
  1. 64
      packages/nc-gui/components/templates/createProjectFromTemplateBtn.vue

64
packages/nc-gui/components/templates/createProjectFromTemplateBtn.vue

@ -1,37 +1,37 @@
<template> <template>
<div> <div>
<v-menu bottom offset-y> <!-- <v-menu bottom offset-y>-->
<template #activator="{on}"> <!-- <template #activator="{on}">-->
<v-btn <v-btn
:loading="projectCreation" :loading="projectCreation"
:disabled="projectCreation" :disabled="projectCreation"
class="primary nc-btn-use-template" class="primary nc-btn-use-template"
x-large x-large
v-on="on" @click="useTemplate('rest')"
> >
<slot>Use template</slot> <slot>Use template</slot>
<v-icon>mdi-menu-down</v-icon> <!-- <v-icon>mdi-menu-down</v-icon>-->
</v-btn> </v-btn>
</template> <!-- </template>-->
<v-list> <!-- <v-list>-->
<v-list-item dense class="py-2" @click="useTemplate('rest')"> <!-- <v-list-item dense class="py-2" @click="useTemplate('rest')">-->
<v-list-item-title> <!-- <v-list-item-title>-->
<v-icon class="mr-1" :color="textColors[7]"> <!-- <v-icon class="mr-1" :color="textColors[7]">-->
mdi-code-json <!-- mdi-code-json-->
</v-icon> <!-- </v-icon>-->
{{ createRestText }} <!-- {{ createRestText }}-->
</v-list-item-title> <!-- </v-list-item-title>-->
</v-list-item> <!-- </v-list-item>-->
<v-list-item dense class="py-2" @click="useTemplate('graphql')"> <!-- <v-list-item dense class="py-2" @click="useTemplate('graphql')">-->
<v-list-item-title> <!-- <v-list-item-title>-->
<v-icon class="mr-1" :color="textColors[3]"> <!-- <v-icon class="mr-1" :color="textColors[3]">-->
mdi-graphql <!-- mdi-graphql-->
</v-icon> <!-- </v-icon>-->
{{ createGqlText }} <!-- {{ createGqlText }}-->
</v-list-item-title> <!-- </v-list-item-title>-->
</v-list-item> <!-- </v-list-item>-->
</v-list> <!-- </v-list>-->
</v-menu> <!-- </v-menu>-->
</div> </div>
</template> </template>

Loading…
Cancel
Save