瀏覽代碼

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

Skylsmoi 6 年之前
父節點
當前提交
6cb697acc6

+ 1 - 0
frontend_lib/src/component/CardPopup/CardPopupCreateContent.jsx 查看文件

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 查看文件

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