fix(系统设置): 资源池启用禁用提示语

--bug=1027755 --user=宋昌昌 【系统设置】github#25538,优化建议,【系统设置】-系统-测试资源池:选择校验通过的数据点击启用没有提示“启用成功”。选择已启用的数据点击禁用,提示信息建议修改为“禁用成功 https://www.tapd.cn/55049933/s/1398025
This commit is contained in:
song-cc-rock 2023-07-26 17:12:48 +08:00 committed by fit2-zhao
parent db77298ff8
commit 33af32f800
1 changed files with 1 additions and 1 deletions

View File

@ -583,7 +583,7 @@ export default {
},
updatePoolStatus(row) {
modifyResourcePoolStatus(row.id, row.status).then(() => {
this.$success(this.$t('test_resource_pool.status_change_success'));
this.$success(row.status === 'VALID' ? this.$t('commons.enable_success') : this.$t('commons.disable_success'));
}).catch(() => {
this.$error(this.$t('test_resource_pool.status_change_failed'));
row.status = 'INVALID';