Skip to content

Commit

Permalink
feat: Hide article author based on saved publication setting option -…
Browse files Browse the repository at this point in the history
… EXO-72746 - Meeds-io/MIPs#161 (#297)

Hide article details author based on saved publication setting option
  • Loading branch information
hakermi committed Nov 28, 2024
1 parent bb58d69 commit 442ef73
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,10 @@ export default {
},
computed: {
showUpdaterInfo() {
return !this.isPublicAccess;
return !this.isPublicAccess && !this.hideAuthor;
},
hideAuthor() {
return this.news?.properties?.hideAuthor;
},
isPublicAccess() {
return !eXo?.env?.portal?.userIdentityId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,11 @@ export default {
showArticleImage() {
return this.selectedOption?.showArticleImage;
},
hideAuthor() {
return this.item?.properties?.hideAuthor;
},
showArticleAuthor() {
return this.selectedOption?.showArticleAuthor;
return this.selectedOption?.showArticleAuthor && !this.hideAuthor ;
},
showArticleSpace() {
return this.selectedOption?.showArticleSpace;
Expand Down

0 comments on commit 442ef73

Please sign in to comment.