Skip to content

Commit 9f44473

Browse files
committed
address copilot comments
1 parent 60848ce commit 9f44473

1 file changed

Lines changed: 0 additions & 19 deletions

File tree

ui/src/views/AutogenView.vue

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,6 @@
195195
:footer="null"
196196
style="top: 20px;"
197197
:width="modalWidth"
198-
:ok-button-props="okButtonProps"
199-
:cancel-button-props="getCancelProps()"
200198
:confirmLoading="actionLoading"
201199
@cancel="cancelAction"
202200
centered
@@ -906,16 +904,6 @@ export default {
906904
}
907905
return 'self'
908906
},
909-
okButtonProps () {
910-
if (this.currentAction?.requireNameConfirmation && !(this.currentAction.groupAction && this.selectedRowKeys.length > 0)) {
911-
const isConfirmed = this.actionConfirmText.trim() === this.resource?.name?.trim()
912-
return { type: 'primary', disabled: !isConfirmed }
913-
}
914-
if (this.selectedRowKeys.length > 0 && this.currentAction?.groupAction) {
915-
return {}
916-
}
917-
return { type: 'primary' }
918-
},
919907
isSubmitDisabled () {
920908
if (this.currentAction?.requireNameConfirmation && !(this.currentAction.groupAction && this.selectedRowKeys.length > 0)) {
921909
return this.actionConfirmText.trim() !== this.resource?.name?.trim()
@@ -930,13 +918,6 @@ export default {
930918
}
931919
return 'inline-flex'
932920
},
933-
getCancelProps () {
934-
if (this.selectedRowKeys.length > 0 && this.currentAction?.groupAction) {
935-
return { props: { type: 'primary' } }
936-
} else {
937-
return { props: { type: 'default' } }
938-
}
939-
},
940921
switchProject (projectId) {
941922
if (!projectId || !projectId.length || projectId.length !== 36) {
942923
return

0 commit comments

Comments
 (0)