Przeglądaj źródła

add message during no tags

itizawa 7 lat temu
rodzic
commit
d073e6463f

+ 8 - 0
src/client/js/components/Page/TagLabel.jsx

@@ -51,6 +51,14 @@ export default class TagLabel extends React.Component {
   render() {
   render() {
     const tags = [];
     const tags = [];
 
 
+    if (this.state.currentPageTags.length === 0) {
+      tags.push(
+        <a onClick={this.handleShowModal}>
+        Add tags for this page
+        </a>,
+      );
+    }
+
     for (let i = 0; i < this.state.currentPageTags.length; i++) {
     for (let i = 0; i < this.state.currentPageTags.length; i++) {
       tags.push(
       tags.push(
         <i className="tag-icon icon-tag"></i>,
         <i className="tag-icon icon-tag"></i>,

+ 1 - 1
src/client/styles/scss/_tag.scss

@@ -5,7 +5,7 @@
 
 
     .manage-tags {
     .manage-tags {
       cursor: pointer;
       cursor: pointer;
-      font-size: 15px;
+      font-size: 12px;
       margin-left: 10px;
       margin-left: 10px;
     }
     }