Commit 28d2b23f authored by Ryo Yamashita's avatar Ryo Yamashita Committed by Yas Naoi
Browse files

Issue #3280793 by Ryo Yamashita, yas: Allow changing the label of the "Save"...

Issue #3280793 by Ryo Yamashita, yas: Allow changing the label of the "Save" button on CxUD forms in the SPA
parent 89e791a3
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -64,7 +64,8 @@ const K8S_NAMESPACE_TEMPLATE: EntityFormTemplate[] = [
        type: 'label',
        text: 'CAUTION: The role "{{name}}" is also going to be deleted.'
      }
    ]
    ],
    submitButtonLabel: 'Delete'
  }
]

+2 −1
Original line number Diff line number Diff line
@@ -60,7 +60,8 @@ const K8S_OTHER_TEMPLATE: EntityFormTemplate[] = [
        type: 'label',
        text: 'Are you sure you want to delete the {{name}} {{entityName}}?'
      },
    ]
    ],
    submitButtonLabel: 'Delete'
  }
]

+2 −1
Original line number Diff line number Diff line
@@ -76,7 +76,8 @@ const OPENSTACK_IMAGE_TEMPLATE: EntityFormTemplate[] = [
        type: 'label',
        text: 'Are you sure you want to delete the {{name}} {{entityName}}?'
      },
    ]
    ],
    submitButtonLabel: 'Delete'
  }
]

+2 −1
Original line number Diff line number Diff line
@@ -109,7 +109,8 @@ const VMWARE_VM_TEMPLATE: EntityFormTemplate[] = [
        type: 'label',
        text: 'Are you sure you want to delete the "{{name}}" VM?'
      }
    ]
    ],
    submitButtonLabel: 'Delete'
  }
]

+1 −0
Original line number Diff line number Diff line
@@ -5,6 +5,7 @@ type EntityFormTemplate = {
  entityName: string,
  actionType: string,
  entityRecords: EntityFormRecord[],
  submitButtonLabel?: string,
}

export default EntityFormTemplate;
Loading