Commit 98e1128e authored by Axel Bocciarelli's avatar Axel Bocciarelli
Browse files

Fix creation of tags in TagManager

parent 4b09bc72
......@@ -47,19 +47,7 @@ class TagsManagerContainer extends Component {
render() {
if (this.state.isFetching) {
return <Loader message="Loading tags..." />;
}
if (this.state.availableTags.length === 0) {
return (
<WrapperWithUserMessage userMessage={this.state.userMessage}>
<NoTagGrid />
<TagListMenu
onNewTagButtonClicked={this.onNewTagButtonClicked}
logbookContext={this.props.logbookContext}
/>
</WrapperWithUserMessage>
);
return <Loader message="Loading tags..." spacedOut />;
}
if (this.state.isEditingOrCreatingTag) {
......@@ -78,6 +66,18 @@ class TagsManagerContainer extends Component {
);
}
if (this.state.availableTags.length === 0) {
return (
<WrapperWithUserMessage userMessage={this.state.userMessage}>
<NoTagGrid />
<TagListMenu
onNewTagButtonClicked={this.onNewTagButtonClicked}
logbookContext={this.props.logbookContext}
/>
</WrapperWithUserMessage>
);
}
return (
<WrapperWithUserMessage userMessage={this.state.userMessage}>
<TagListMenu
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment