perf: application overview update Text#1965
Conversation
|
Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
| import { isAppIcon, isWorkFlow } from '@/utils/application' | ||
| import applicationXpackApi from '@/api/application-xpack' | ||
| import { MsgSuccess, MsgError } from '@/utils/message' | ||
| import { t } from '@/locales' |
There was a problem hiding this comment.
The provided code snippet has a few minor adjustments:
- Typographical Error: In the first
el-checkbox, add quotes around the label to fix'显示知识来源'. - Import Statement: Ensure the import statement for
applicationXpackApiis correct. - Variable Usage: Use
isWorkFlow(detail.type)correctly in setting the checkbox label.
Here's the corrected version of the code:
@@ -264,7 +264,10 @@
</el-card>
<el-space direction="vertical" alignment="start" :size="2">
- <el-checkbox v-model="form.show_source" label="'显示知识来源'" />
+ <el-checkbox v-model="form.show_source"
+ :label="isWorkFlow(detail.type) ? '显示执行详情' : '显示知识来源'"
+ />
<el-checkbox v-model="form.show_history" label="显示历史记录" />
<el-checkbox v-model="form.show_guide" label="显示引导图(浮窗模式)" />
<el-checkbox v-model="form.disclaimer" label="免责声明" @change="changeDisclaimer" />
@@ -298,7 +301,7 @@
import { computed, ref, watch } from 'vue'
import { useRoute } from 'vue-router'
import type { FormInstance, FormRules, UploadFiles } from 'element-plus'
-import { isAppIcon } from '@/utils/application'
+import { isAppIcon, isWorkFlow } from '@/utils/application'
import applicationXpackApi from '@/api/application-xpack'
import { MsgSuccess, MsgError } from '@/utils/message'
import { t } from '@/locales'These changes address the typographical error and ensure that isWorkFlow(detail.type) is used correctly in setting the checkbox label.
perf: application overview update Text