);
@@ -84,6 +89,18 @@ class TopicViewer extends React.Component {
);
}
+ renderAddNewArticle() {
+ let props = {
+ topicId: this.props.topicId,
+ position: this.props.articles.length,
+ topicName: this.props.name
+ };
+
+ return (
+
+ );
+ }
+
onDeleteClick() {
API.call({
path: '/article/delete-topic',
diff --git a/client/src/app-components/topic-viewer.scss b/client/src/app-components/topic-viewer.scss
index 3bb483fc..ecc9aec8 100644
--- a/client/src/app-components/topic-viewer.scss
+++ b/client/src/app-components/topic-viewer.scss
@@ -32,26 +32,25 @@
}
&__list {
+
&-item {
display: inline-block;
width: 50%;
color: $secondary-blue;
margin-bottom: 10px;
}
+
&-item:before {
content: "• ";
color: $grey;
}
- //
- &-item:nth-child(even) {
- //background: red;
- }
- &-item:nth-child(odd) {
- //background: green;
- }
&-item-button {
color: $secondary-blue;
}
}
+
+ &__add-item {
+ color: $dark-grey;
+ }
}
\ No newline at end of file
diff --git a/client/src/data/languages/en.js b/client/src/data/languages/en.js
index 6bca9888..751a4790 100644
--- a/client/src/data/languages/en.js
+++ b/client/src/data/languages/en.js
@@ -84,6 +84,8 @@ export default {
'ADD_TOPIC': 'Add Topic',
'ICON': 'Icon',
'COLOR': 'Color',
+ 'ADD_NEW_ARTICLE': 'Add new article',
+ 'ADD_ARTICLE': 'Add article',
//VIEW DESCRIPTIONS
'CREATE_TICKET_DESCRIPTION': 'This is a form for creating tickets. Fill the form and send us your issues/doubts/suggestions. Our support system will answer it as soon as possible.',
@@ -102,6 +104,7 @@ export default {
'DELETE_USER_DESCRIPTION': 'The user will not be able to log in aging and all its tickets will be erased. Also, the email can not be used any more.',
'DELETE_TOPIC_DESCRIPTION': 'By deleting the topic, all articles on it will be erased.',
'EDIT_TOPIC_DESCRIPTION': 'Here you can change the name, the icon and the icon color of the topic.',
+ 'ADD_ARTICLE_DESCRIPTION': 'Here you can add an article that will be available for every user. It will be added inside the category {category}.',
//ERRORS
'EMAIL_OR_PASSWORD': 'Email or password invalid',