From 6cfcb46e3399a02f141cbaf9c969cfb7b9ede88a Mon Sep 17 00:00:00 2001 From: fn-faisal Date: Mon, 26 Jul 2021 19:17:33 +0500 Subject: [PATCH] Add option to create a field after creating a class #1726 (#1728) * combined create class flow * config revert * reformating -- 1 * reset forms after submitting * Improve feed back for add column dialog * improve add column dialog -- 2 * reverting isDisabled * mergeconflicts resolve 2 * required column changes * required col in addAndContinue * removed index.html Co-authored-by: Faisal Nadeem --- Parse-Dashboard/parse-dashboard-config.json | 2 +- src/components/Modal/Modal.react.js | 12 ++++ .../Data/Browser/AddColumnDialog.react.js | 7 ++- src/dashboard/Data/Browser/Browser.react.js | 58 ++++++++++++++----- .../Data/Browser/CreateClassDialog.react.js | 10 ++++ 5 files changed, 71 insertions(+), 18 deletions(-) diff --git a/Parse-Dashboard/parse-dashboard-config.json b/Parse-Dashboard/parse-dashboard-config.json index 07941d1cbb..e5c4decbf3 100644 --- a/Parse-Dashboard/parse-dashboard-config.json +++ b/Parse-Dashboard/parse-dashboard-config.json @@ -11,4 +11,4 @@ } ], "iconsFolder": "icons" -} \ No newline at end of file +} diff --git a/src/components/Modal/Modal.react.js b/src/components/Modal/Modal.react.js index 25f5055170..5bea30db9d 100644 --- a/src/components/Modal/Modal.react.js +++ b/src/components/Modal/Modal.react.js @@ -39,6 +39,9 @@ let Modal = (({ customFooter, textModal = false, width, + continueText, + onContinue, + showContinue, buttonsInCenter = React.Children.count(children) === 0, }) => { if (children) { @@ -63,6 +66,15 @@ let Modal = (({ disabled={!!disabled} onClick={onConfirm} progress={progress} /> + { + showContinue === true ? +