0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-14 02:02:51 +00:00

Initial pass at visibility functionality

This commit is contained in:
G.Ambatte
2022-08-28 23:46:19 +12:00
parent 0811da79c4
commit 4bb5e96c42
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
}
);
}