Skip to content

Commit ff50666

Browse files
committed
fix: hide trigger create button when workspace admin lacks creation permission
1 parent 074a203 commit ff50666

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/src/views/trigger/TriggerDrawer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@
460460
<ToolDialog @refresh="toolRefresh" ref="toolDialogRef"></ToolDialog>
461461
<template #footer>
462462
<el-button @click="close">{{ $t('common.cancel') }}</el-button>
463-
<el-button v-if="editPermission" type="primary" @click="submit">{{
463+
<el-button v-if="!is_edit || editPermission" type="primary" @click="submit">{{
464464
is_edit ? $t('common.save') : $t('common.create')
465465
}}</el-button>
466466
</template>

0 commit comments

Comments
 (0)