diff --git a/src/dashboard/Account/AccountOverview.react.js b/src/dashboard/Account/AccountOverview.react.js index c6966ad5f7..2fce5c9ca8 100644 --- a/src/dashboard/Account/AccountOverview.react.js +++ b/src/dashboard/Account/AccountOverview.react.js @@ -291,7 +291,7 @@ export default class AccountOverview extends React.Component { onClose={() => { this.setState({showAccountKeyModal: false}); }} - submitText='Create Key' + submitText='Create' inProgressText={'Creating\u2026'} clearFields={() => { this.setState({accountKeyName: ''}); @@ -332,7 +332,7 @@ export default class AccountOverview extends React.Component { subtitle='If you delete this account key, anything that was using it will stop working.' type={Modal.Types.DANGER} open={this.state.showDeleteAccountKeyModal} - submitText='Yes, delete it' + submitText='Delete' inProgressText={'Deleting\u2026'} onSubmit={() => { return AccountManager.deleteAccountKeyById(this.state.accountKeyIdToDelete); diff --git a/src/dashboard/Data/Browser/AddColumnDialog.react.js b/src/dashboard/Data/Browser/AddColumnDialog.react.js index 6b11c174b3..fd244551b4 100644 --- a/src/dashboard/Data/Browser/AddColumnDialog.react.js +++ b/src/dashboard/Data/Browser/AddColumnDialog.react.js @@ -200,10 +200,10 @@ export default class AddColumnDialog extends React.Component { title='Add a new column' subtitle='Store another type of data in this class.' disabled={!this.valid()} - confirmText='Add column' - cancelText={'Never mind, don\u2019t.'} + confirmText='Add' + cancelText='Cancel' onCancel={this.props.onCancel} - continueText={'Add column & continue'} + continueText={'Add & continue'} showContinue={true} onContinue={() => { this.props.onContinue(this.state); diff --git a/src/dashboard/Data/Browser/AttachRowsDialog.react.js b/src/dashboard/Data/Browser/AttachRowsDialog.react.js index 3bd27b54f1..79a850c520 100644 --- a/src/dashboard/Data/Browser/AttachRowsDialog.react.js +++ b/src/dashboard/Data/Browser/AttachRowsDialog.react.js @@ -43,7 +43,7 @@ export default class AttachRowsDialog extends React.Component { onClose={this.props.onCancel} onSubmit={this.handleConfirm} submitText="Attach" - inProgressText="Attaching ..." + inProgressText={'Attaching\u2026'} > diff --git a/src/dashboard/Data/Browser/CloneSelectedRowsDialog.react.js b/src/dashboard/Data/Browser/CloneSelectedRowsDialog.react.js index 14e7221f6e..3a387f4a21 100644 --- a/src/dashboard/Data/Browser/CloneSelectedRowsDialog.react.js +++ b/src/dashboard/Data/Browser/CloneSelectedRowsDialog.react.js @@ -56,8 +56,8 @@ export default class CloneSelectedRowsDialog extends React.Component { title={this.props.selection['*'] ? 'Clone all rows?' : (selectionLength === 1 ? 'Clone this row?' : `Clone ${selectionLength} rows?`)} subtitle={''} disabled={!this.valid()} - confirmText={'Yes clone'} - cancelText={'Never mind, don\u2019t.'} + confirmText='Clone' + cancelText='Cancel' onCancel={this.props.onCancel} onConfirm={this.props.onConfirm}> {content} diff --git a/src/dashboard/Data/Browser/CreateClassDialog.react.js b/src/dashboard/Data/Browser/CreateClassDialog.react.js index 6f17b7c178..e54f345157 100644 --- a/src/dashboard/Data/Browser/CreateClassDialog.react.js +++ b/src/dashboard/Data/Browser/CreateClassDialog.react.js @@ -64,12 +64,12 @@ export default class CreateClassDialog extends React.Component { type={Modal.Types.INFO} icon='plus' iconSize={40} - title='Add a new class' - subtitle='Create a new collection of objects.' + title='Create a new class?' + subtitle='This creates a new class to hold objects.' disabled={!this.valid()} - confirmText='Create class' - cancelText={'Cancel'} - continueText={'Create class & add columns'} + confirmText='Create' + cancelText='Cancel' + continueText={'Create & add columns'} onCancel={this.props.onCancel} showContinue={true} onContinue={async () => { diff --git a/src/dashboard/Data/Browser/DeleteRowsDialog.react.js b/src/dashboard/Data/Browser/DeleteRowsDialog.react.js index 66e16e3e4e..93fc24a994 100644 --- a/src/dashboard/Data/Browser/DeleteRowsDialog.react.js +++ b/src/dashboard/Data/Browser/DeleteRowsDialog.react.js @@ -57,8 +57,8 @@ export default class DeleteRowsDialog extends React.Component { title={this.props.selection['*'] ? `${deleteText} all rows?` : (selectionLength === 1 ? `${deleteText} this row?` : `${deleteText} ${selectionLength} rows?`)} subtitle={this.props.relation ? 'You need to delete origin record. This is a reference.' : 'This action cannot be undone!'} disabled={!this.valid()} - confirmText={`Yes, ${this.props.relation ? 'detach' : 'delete'}`} - cancelText={'Never mind, don\u2019t.'} + confirmText='Delete' + cancelText='Cancel' onCancel={this.props.onCancel} onConfirm={this.props.onConfirm}> {content} diff --git a/src/dashboard/Data/Browser/DropClassDialog.react.js b/src/dashboard/Data/Browser/DropClassDialog.react.js index 56623b2ebf..b007ab559e 100644 --- a/src/dashboard/Data/Browser/DropClassDialog.react.js +++ b/src/dashboard/Data/Browser/DropClassDialog.react.js @@ -35,8 +35,8 @@ export default class DropClassDialog extends React.Component { title='Delete this class?' subtitle='This action cannot be undone!' disabled={!this.valid()} - confirmText='Yes, delete.' - cancelText={'Never mind, don\u2019t.'} + confirmText='Delete' + cancelText='Cancel' onCancel={this.props.onCancel} onConfirm={this.props.onConfirm}> {} diff --git a/src/dashboard/Data/Browser/PointerKeyDialog.react.js b/src/dashboard/Data/Browser/PointerKeyDialog.react.js index 74ea430745..f102a514cb 100644 --- a/src/dashboard/Data/Browser/PointerKeyDialog.react.js +++ b/src/dashboard/Data/Browser/PointerKeyDialog.react.js @@ -52,10 +52,10 @@ export default class PointerKeyDialog extends React.Component { return ( { diff --git a/src/dashboard/Data/Browser/RemoveColumnDialog.react.js b/src/dashboard/Data/Browser/RemoveColumnDialog.react.js index bcf0a119cc..38eef79be8 100644 --- a/src/dashboard/Data/Browser/RemoveColumnDialog.react.js +++ b/src/dashboard/Data/Browser/RemoveColumnDialog.react.js @@ -46,10 +46,10 @@ export default class RemoveColumnDialog extends React.Component { { diff --git a/src/dashboard/Data/Browser/SecureFieldsDialog.react.js b/src/dashboard/Data/Browser/SecureFieldsDialog.react.js index d82fd3690e..87a878b36c 100644 --- a/src/dashboard/Data/Browser/SecureFieldsDialog.react.js +++ b/src/dashboard/Data/Browser/SecureFieldsDialog.react.js @@ -128,7 +128,7 @@ export default class SecureFieldsDialog extends React.Component { protectedFields={this.props.perms.protectedFields} enablePointerPermissions={parseServerSupportsPointerPermissions} advanced={true} - confirmText="Save Fields" + confirmText="Save" details={ Learn more about CLPs and app security} permissions={this.props.perms} userPointers={this.props.userPointers} - validateEntry={entry => + validateEntry={entry => validateEntry(this.props.userPointers, entry, parseServerSupportsPointerPermissions)} onCancel={this.handleClose} - onConfirm={perms => + onConfirm={perms => this.props.onChangeCLP(perms).then(this.handleClose)} /> ); @@ -134,7 +134,7 @@ export default class SecurityDialog extends React.Component { if (this.props.disabled) { classes.push(styles.toolbarButtonDisabled); } - + return dialog; } } diff --git a/src/dashboard/Data/Config/ConfigDialog.react.js b/src/dashboard/Data/Config/ConfigDialog.react.js index e2778e5fcb..be14f77388 100644 --- a/src/dashboard/Data/Config/ConfigDialog.react.js +++ b/src/dashboard/Data/Config/ConfigDialog.react.js @@ -203,8 +203,8 @@ export default class ConfigDialog extends React.Component { iconSize={30} subtitle={'Dynamically configure parts of your app'} disabled={!this.valid()} - confirmText={newParam ? 'Create parameter' : 'Save parameter'} - cancelText={'Cancel'} + confirmText={newParam ? 'Create' : 'Save'} + cancelText='Cancel' onCancel={this.props.onCancel} onConfirm={this.submit.bind(this)}> } input={EDITORS[this.state.type](this.state.value, (value) => { this.setState({ value }) })} /> - + { /* Add `Requires master key` field if parse-server version >= 3.9.0, that is the minimum version that supports this feature. */ - semver.valid(this.props.parseServerVersion) && semver.gte(this.props.parseServerVersion, '3.9.0') + semver.valid(this.props.parseServerVersion) && semver.gte(this.props.parseServerVersion, '3.9.0') ? this.setState({ masterKeyOnly })} + onChange={(masterKeyOnly) => this.setState({ masterKeyOnly })} additionalStyles={{ margin: '0px' }} /> } className={styles.addColumnToggleWrapper} diff --git a/src/dashboard/Data/Config/DeleteParameterDialog.react.js b/src/dashboard/Data/Config/DeleteParameterDialog.react.js index c3c4ed252e..d545b0c777 100644 --- a/src/dashboard/Data/Config/DeleteParameterDialog.react.js +++ b/src/dashboard/Data/Config/DeleteParameterDialog.react.js @@ -46,11 +46,11 @@ export default class DeleteParameterDialog extends React.Component { {content} diff --git a/src/dashboard/Data/Jobs/Jobs.react.js b/src/dashboard/Data/Jobs/Jobs.react.js index 98ef7574fa..5d1521f9fd 100644 --- a/src/dashboard/Data/Jobs/Jobs.react.js +++ b/src/dashboard/Data/Jobs/Jobs.react.js @@ -230,8 +230,8 @@ class Jobs extends TableView { type={Modal.Types.DANGER} title='Delete job schedule?' subtitle='Careful, this action cannot be undone' - confirmText='Yes, delete it' - cancelText={'Never mind, don\'t'} + confirmText='Delete' + cancelText='Cancel' onCancel={() => this.setState({ toDelete: null })} onConfirm={() => { this.setState({ toDelete: null }); diff --git a/src/dashboard/Data/Webhooks/Webhooks.react.js b/src/dashboard/Data/Webhooks/Webhooks.react.js index 99e797db67..b200fb5d29 100644 --- a/src/dashboard/Data/Webhooks/Webhooks.react.js +++ b/src/dashboard/Data/Webhooks/Webhooks.react.js @@ -166,7 +166,7 @@ class Webhooks extends TableView { onClose={() => { this.setState({showNewWebhookModal: false}); }} - submitText='Create Webhook' + submitText='Create' inProgressText={'Creating\u2026'} clearFields={this.clearFields.bind(this)} enabled={true /* TODO: do some validation here */}> @@ -184,7 +184,7 @@ class Webhooks extends TableView { onClose={() => { this.setState({showEditWebhookModal: false}); }} - submitText='Save Webhook' + submitText='Save' inProgressText={'Saving\u2026'} clearFields={this.clearFields.bind(this)} enabled={true /* TODO: do some validation here */}> @@ -212,7 +212,7 @@ class Webhooks extends TableView { onClose={() => { this.setState({showDeleteWebhookModal: false}); }} - submitText='Delete Webhook' + submitText='Delete' inProgressText={'Deleting\u2026'} clearFields={() => { this.setState({ diff --git a/src/dashboard/Settings/AppleCerts.react.js b/src/dashboard/Settings/AppleCerts.react.js index 1de385a640..b083758de6 100644 --- a/src/dashboard/Settings/AppleCerts.react.js +++ b/src/dashboard/Settings/AppleCerts.react.js @@ -61,10 +61,10 @@ export default class AppleCerts extends React.Component { {this.state.deletePending === null ? null : this.setState({ deletePending: null })} onConfirm={() => { let id = this.state.deletePending; diff --git a/src/dashboard/Settings/GeneralSettings.react.js b/src/dashboard/Settings/GeneralSettings.react.js index 31de3b49b2..8cff83780a 100644 --- a/src/dashboard/Settings/GeneralSettings.react.js +++ b/src/dashboard/Settings/GeneralSettings.react.js @@ -409,8 +409,8 @@ export default class GeneralSettings extends DashboardView { iconSize={30} type={Modal.Types.DANGER} open={this.state.showMigrateAppModal} - submitText={this.state.migrationWarnings && this.state.migrationWarnings.length > 0 ? 'Migrate anyway' : 'Begin the migration'} - inProgressText={'Beginning the migration\u2026'} + submitText={this.state.migrationWarnings && this.state.migrationWarnings.length > 0 ? 'Migrate anyway' : 'Migrate'} + inProgressText={'Migrating\u2026'} showErrors={this.state.showMongoConnectionValidationErrors} width={900} onSubmit={() => { @@ -463,7 +463,7 @@ export default class GeneralSettings extends DashboardView { }} onClose={closeModalWithConnectionString} type={Modal.Types.DANGER} - submitText={this.state.migrationWarnings && this.state.migrationWarnings.length > 0 ? 'Change anyway' : 'Change connection string'} + submitText={this.state.migrationWarnings && this.state.migrationWarnings.length > 0 ? 'Change anyway' : 'Change'} inProgressText={'Changing\u2026'} showErrors={this.state.showMongoConnectionValidationErrors} width={900} @@ -494,7 +494,7 @@ export default class GeneralSettings extends DashboardView { iconSize={30} type={Modal.Types.DANGER} open={this.state.showTransferAppModal} - submitText='Transfer ownership' + submitText='Transfer' inProgressText={'Transferring\u2026'} enabled={ (this.state.password.length > 0 || !AccountManager.currentUser().has_password) @@ -531,7 +531,7 @@ export default class GeneralSettings extends DashboardView { subtitle='This is an irreversible action!' type={Modal.Types.DANGER} open={this.state.showDeleteAppModal} - submitText='Permanently delete this app' + submitText='Delete' inProgressText={'Deleting\u2026'} enabled={this.state.password.length > 0} onSubmit={() => AppsManager.deleteApp(this.context.slug, this.state.password)} diff --git a/src/dashboard/Settings/SecuritySettings.react.js b/src/dashboard/Settings/SecuritySettings.react.js index 5930cd3556..059f61947d 100644 --- a/src/dashboard/Settings/SecuritySettings.react.js +++ b/src/dashboard/Settings/SecuritySettings.react.js @@ -48,7 +48,7 @@ export default class SecuritySettings extends DashboardView { } open={this.state.showResetDialog} type={Modal.Types.DANGER} - submitText='Reset it' + submitText='Reset' inProgressText={'Resetting\u2026'} enabled={this.state.passwordInput.length > 0 || !AccountManager.currentUser().has_password} onSubmit={() => currentApp.resetMasterKey(this.state.passwordInput)}