diff --git a/browser/render/components/tag-item/index.jsx b/browser/render/components/tag-item/index.jsx index 4e5e753..e9f5da2 100644 --- a/browser/render/components/tag-item/index.jsx +++ b/browser/render/components/tag-item/index.jsx @@ -4,8 +4,10 @@ import './tag-item' export default class TagItem extends React.Component { handleTagClick () { - const { tag } = this.props - eventEmitter.emit('tag:click', tag) + const { tag, notClickAble } = this.props + if (!notClickAble) { + eventEmitter.emit('tag:click', tag) + } } render () { diff --git a/browser/render/layouts/list-and-detail/snippet-item/index.jsx b/browser/render/layouts/list-and-detail/snippet-item/index.jsx index 485b07f..925af6f 100644 --- a/browser/render/layouts/list-and-detail/snippet-item/index.jsx +++ b/browser/render/layouts/list-and-detail/snippet-item/index.jsx @@ -53,7 +53,12 @@ export default class SnippetItem extends React.Component {

{tags.length > 0 ? ( tags.map((tag, index) => ( - + )) ) : ( No tag