File tree 2 files changed +14
-6
lines changed
plugins/data-manager/frontend/public
2 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 964
964
} ,
965
965
canUserCreateTransform : function ( ) {
966
966
return countlyAuth . validateCreate ( SUB_FEATURE_TRANSFORMATIONS ) ;
967
+ } ,
968
+ showMoreOptions : function ( ) {
969
+ return (
970
+ ( this . isDrill && this . canUserCreateTransform && ( this . currentSecondaryTab === 'events' || this . currentSecondaryTab === 'segmentation' ) ) ||
971
+ ( this . isDrill && this . canUserCreate && this . currentSecondaryTab === 'events' ) ||
972
+ ( this . canUserCreate && this . currentSecondaryTab === 'event-groups' ) ||
973
+ ( this . isDrill && this . canUserCreateTransform && this . currentSecondaryTab === 'transformations' )
974
+ ) ;
967
975
}
968
976
} ,
969
977
components : {
Original file line number Diff line number Diff line change 9
9
< div v-if ="isDrill ">
10
10
< cly-report-manager-dialog class ="bu-mr-2 " origin ="data-manager "> </ cly-report-manager-dialog >
11
11
</ div >
12
- < div v-if ="isDrill && currentSecondaryTab !== 'validations' ">
13
- < cly-more-options v-if ="canUserCreate || canUserCreateTransform " size ="small " text ="Create new " type ="success " icon ="el-icon-circle-plus " @command ="handleCreateCommand($event, currentSecondaryTab) ">
14
- < el-dropdown-item v-if ="canUserCreateTransform && (currentSecondaryTab === 'events' || currentSecondaryTab === 'segmentation') " command ="create-transform ">
12
+ < div v-if ="currentSecondaryTab !== 'validations' ">
13
+ < cly-more-options v-if ="showMoreOptions " size ="small " text ="Create new " type ="success " icon ="el-icon-circle-plus " @command ="handleCreateCommand($event, currentSecondaryTab) ">
14
+ < el-dropdown-item v-if ="isDrill && canUserCreateTransform && (currentSecondaryTab === 'events' || currentSecondaryTab === 'segmentation') " command ="create-transform ">
15
15
{{i18n('data-manager.create-transformation')}}
16
16
</ el-dropdown-item >
17
- < el-dropdown-item v-if ="canUserCreate && (currentSecondaryTab === 'events' ) " command ="create-event ">
17
+ < el-dropdown-item v-if ="isDrill && canUserCreate && (currentSecondaryTab === 'events' ) " command ="create-event ">
18
18
{{i18n('data-manager.create-event')}}
19
19
</ el-dropdown-item >
20
20
< el-dropdown-item v-if ="canUserCreate && (currentSecondaryTab === 'event-groups') " command ="create-event-group ">
21
21
{{i18n('data-manager.create-group')}}
22
22
</ el-dropdown-item >
23
- < el-dropdown-item v-if ="canUserCreateTransform && (currentSecondaryTab === 'transformations') " command ="create-event-transform ">
23
+ < el-dropdown-item v-if ="isDrill && canUserCreateTransform && (currentSecondaryTab === 'transformations') " command ="create-event-transform ">
24
24
{{i18n('data-manager.create-event-transformation')}}
25
25
</ el-dropdown-item >
26
- < el-dropdown-item v-if ="canUserCreateTransform && (currentSecondaryTab === 'transformations') " command ="create-segment-transform ">
26
+ < el-dropdown-item v-if ="isDrill && canUserCreateTransform && (currentSecondaryTab === 'transformations') " command ="create-segment-transform ">
27
27
{{i18n('data-manager.create-segment-transformation')}}
28
28
</ el-dropdown-item >
29
29
</ cly-more-options >
You can’t perform that action at this time.
0 commit comments