Commit 246f026b815ac1d2563b7af2cd542eff12104efc
1 parent
4e270e6c
Exists in
master
and in
26 other branches
Do not show discussion header in regular articles
Showing
2 changed files
with
5 additions
and
1 deletions
Show diff stats
src/plugins/comment_paragraph/hotspot/article-content/article-content.component.ts
| @@ -9,4 +9,8 @@ import {Hotspot} from "../../../../app/hotspot/hotspot.decorator"; | @@ -9,4 +9,8 @@ import {Hotspot} from "../../../../app/hotspot/hotspot.decorator"; | ||
| 9 | export class CommentParagraphArticleContentHotspotComponent { | 9 | export class CommentParagraphArticleContentHotspotComponent { |
| 10 | 10 | ||
| 11 | @Input() article: noosfero.Article; | 11 | @Input() article: noosfero.Article; |
| 12 | + | ||
| 13 | + isDiscussion() { | ||
| 14 | + return this.article.type === "CommentParagraphPlugin::Discussion"; | ||
| 15 | + } | ||
| 12 | } | 16 | } |
src/plugins/comment_paragraph/hotspot/article-content/article-content.html
| 1 | -<div class="discussion-header"> | 1 | +<div class="discussion-header" ng-if="ctrl.isDiscussion()"> |
| 2 | <span class="description">{{"comment-paragraph-plugin.discussion.header" | translate}}</span> | 2 | <span class="description">{{"comment-paragraph-plugin.discussion.header" | translate}}</span> |
| 3 | <span class="start-date date" ng-if="ctrl.article.start_date"> | 3 | <span class="start-date date" ng-if="ctrl.article.start_date"> |
| 4 | <span class="description">{{"comment-paragraph-plugin.discussion.editor.start_date.label" | translate}}</span> | 4 | <span class="description">{{"comment-paragraph-plugin.discussion.editor.start_date.label" | translate}}</span> |