Browse Source

[https://github.com/tracim/tracim/issues/801] btn to create content or workspace is now disabled if name is empty

Skylsmoi 5 years ago
parent
commit
6cb697acc6

+ 1 - 0
frontend_lib/src/component/CardPopup/CardPopupCreateContent.jsx View File

@@ -46,6 +46,7 @@ const PopupCreateContent = props => {
46 46
                   color: '#fdfdfd'
47 47
                 }
48 48
               }}
49
+              disabled={!props.contentName || props.contentName.length === 0}
49 50
             >
50 51
               {props.btnValidateLabel}
51 52
             </button>

+ 2 - 0
frontend_lib/src/component/CardPopup/CardPopupCreateContent.styl View File

@@ -42,3 +42,5 @@
42 42
         display flex
43 43
         justify-content flex-end
44 44
         cursor pointer
45
+        &:disabled
46
+          cursor not-allowed