From a1a08a9fc8c9d902600f4e6de4e691d85e5255ae Mon Sep 17 00:00:00 2001 From: zxj96 <519213124@qq.com> Date: Tue, 21 May 2019 13:31:16 +0800 Subject: [PATCH] Make create-repo-dialog consistent with share-dialog --- .../components/dialog/create-repo-dialog.js | 48 +++++++++++-------- 1 file changed, 27 insertions(+), 21 deletions(-) diff --git a/frontend/src/components/dialog/create-repo-dialog.js b/frontend/src/components/dialog/create-repo-dialog.js index 22a8742e71..6fee61977a 100644 --- a/frontend/src/components/dialog/create-repo-dialog.js +++ b/frontend/src/components/dialog/create-repo-dialog.js @@ -184,27 +184,33 @@ class CreateRepoDialog extends React.Component { - - {/* todo translate */} - {gettext('(at least 8 characters)')} - - - - - - + {!this.state.disabled && + + {/* todo translate */} + {' '}{gettext('(at least 8 characters)')} + + + } + {!this.state.disabled && + + + + + } }