Skip to content

Commit 7f27b82

Browse files
liuruibinwangdan-fit2cloud
authored andcommitted
fix: disable dropdown items for unpublished entries
--bug=1068813@tapd-62980211 --user=刘瑞斌 【github#5146】未发布的智能体可以创建触发器,但即使智能体发布后触发器也无法触发 https://www.tapd.cn/62980211/s/1910656
1 parent 4d1a892 commit 7f27b82

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

ui/src/views/application/index.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,7 @@
288288
</el-dropdown-item>
289289
<el-dropdown-item
290290
@click.stop="openTriggerDrawer(item)"
291+
:disabled="!item.is_publish"
291292
v-if="
292293
apiType === 'workspace' && permissionPrecise.trigger_read(item.id)
293294
"

ui/src/views/system-resource-management/ApplicationResourceIndex.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@
290290
{{ $t('common.export') }}
291291
</el-dropdown-item>
292292
<el-dropdown-item
293+
:disabled="!row.is_publish"
293294
@click.stop="openTriggerDrawer(row)"
294295
v-if="permissionPrecise.trigger_read()"
295296
>

0 commit comments

Comments
 (0)