Browse Source

fix: enable project operations for user

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/510/head
Pranav C 3 years ago
parent
commit
d6dcdea1b6
  1. 4
      packages/nc-gui/components/project/spreadsheet/components/spreadsheetNavDrawer.vue
  2. 3
      packages/nc-gui/helpers/rolePermissionsEE.js
  3. 4
      packages/nc-gui/pages/projects/index.vue

4
packages/nc-gui/components/project/spreadsheet/components/spreadsheetNavDrawer.vue

@ -141,7 +141,7 @@
</v-list-item> </v-list-item>
<v-tooltip bottom> <v-tooltip bottom>
<template #activator="{ on }"> <template #activator="{ on }">
<v-list-item dense class="body-2" v-on="on" @click="openCreateViewDlg('grid')"> <v-list-item dense class="body-2 nc-create-grid-view" v-on="on" @click="openCreateViewDlg('grid')">
<v-list-item-icon class="mr-n1"> <v-list-item-icon class="mr-n1">
<v-icon color="blue" x-small> <v-icon color="blue" x-small>
mdi-grid-large mdi-grid-large
@ -164,7 +164,7 @@
</v-tooltip> </v-tooltip>
<v-tooltip bottom> <v-tooltip bottom>
<template #activator="{ on }"> <template #activator="{ on }">
<v-list-item dense class="body-2" v-on="on" @click="openCreateViewDlg('gallery')"> <v-list-item dense class="body-2 nc-create-gallery-view" v-on="on" @click="openCreateViewDlg('gallery')">
<v-list-item-icon class="mr-n1"> <v-list-item-icon class="mr-n1">
<v-icon color="orange" x-small> <v-icon color="orange" x-small>
mdi-camera-image mdi-camera-image

3
packages/nc-gui/helpers/rolePermissionsEE.js

@ -16,7 +16,8 @@ export default {
column: true column: true
}, },
user: { user: {
projectCreate: true projectCreate: true,
projectActions: true
} }
} }
/** /**

4
packages/nc-gui/pages/projects/index.vue

@ -270,7 +270,7 @@
</td> </td>
<td> <td>
<div <div
v-if="_isUIAllowed('project.actions',true)" v-if="_isUIAllowed('projectActions',true)"
:class="{ :class="{
'action-icons': !( 'action-icons': !(
projectStatusUpdating && projectStatusUpdating &&
@ -610,8 +610,8 @@
</template> </template>
<script> <script>
import SponsorMini from '@/components/sponsorMini'
import dlgLabelSubmitCancel from '../../components/utils/dlgLabelSubmitCancel.vue' import dlgLabelSubmitCancel from '../../components/utils/dlgLabelSubmitCancel.vue'
import SponsorMini from '@/components/sponsorMini'
import colors from '~/mixins/colors' import colors from '~/mixins/colors'
export default { export default {

Loading…
Cancel
Save