0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-17 05:52:42 +00:00

Initial pass at visibility functionality

This commit is contained in:
G.Ambatte
2022-08-28 23:46:19 +12:00
parent 98e2d57691
commit 9571cb0cc4
3 changed files with 82 additions and 16 deletions

View File

@@ -31,17 +31,19 @@ const UserPage = createClass({
const brewCollection = [
{
title : `${usernameWithS} published brews`,
class : 'published',
brews : brews.published
title : `${usernameWithS} published brews`,
class : 'published',
brews : brews.published,
visible : true
}
];
if(this.props.username == global.account?.username){
brewCollection.push(
{
title : `${usernameWithS} unpublished brews`,
class : 'unpublished',
brews : brews.private
title : `${usernameWithS} unpublished brews`,
class : 'unpublished',
brews : brews.private,
visible : true
}
);
}