Skip to content

Commit

Permalink
fix(frontend): sqlserver、mongo授权规则列表编辑按钮隐藏 TencentBlueKing#7667
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 22337
  • Loading branch information
JustaCattt authored and jinquantianxia committed Oct 31, 2024
1 parent 71e277f commit a345a00
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions dbm-ui/frontend/src/views/db-manage/common/permission/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,8 @@
const tableSearch = ref([]);
const clusterAuthorizeRef = ref<InstanceType<typeof ClusterAuthorize>>();

const isMysql = computed(() => props.accountType === AccountTypes.MYSQL || props.accountType === AccountTypes.TENDBCLUSTER);

/**
* search select 过滤参数
*/
Expand Down Expand Up @@ -386,13 +388,16 @@
onClick={(event: PointerEvent) => handleShowAuthorize(data, item, event)}>
{t('授权')}
</bk-button>
<bk-button
theme="primary"
class="ml-8"
text
onClick={(event: PointerEvent) => handleShowEditRule(event, data, index)}>
{t('编辑')}
</bk-button>
{
isMysql.value &&
<bk-button
theme="primary"
class="ml-8"
text
onClick={(event: PointerEvent) => handleShowEditRule(event, data, index)}>
{t('编辑')}
</bk-button>
}
</div>
))
);
Expand Down

0 comments on commit a345a00

Please sign in to comment.