File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments