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
                   color: '#fdfdfd'
46
                   color: '#fdfdfd'
47
                 }
47
                 }
48
               }}
48
               }}
49
+              disabled={!props.contentName || props.contentName.length === 0}
49
             >
50
             >
50
               {props.btnValidateLabel}
51
               {props.btnValidateLabel}
51
             </button>
52
             </button>

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

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