Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
gab
social
gab-social
Commits
9ed74bcc
Commit
9ed74bcc
authored
Aug 17, 2019
by
mgabdev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated sidebar to be disabled if no current user
parent
004dde25
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
app/javascript/gabsocial/components/sidebar_menu.js
app/javascript/gabsocial/components/sidebar_menu.js
+5
-0
app/javascript/gabsocial/features/ui/index.js
app/javascript/gabsocial/features/ui/index.js
+1
-1
No files found.
app/javascript/gabsocial/components/sidebar_menu.js
View file @
9ed74bcc
...
...
@@ -58,6 +58,8 @@ class SidebarMenu extends ImmutablePureComponent {
};
componentDidUpdate
()
{
if
(
!
me
)
return
;
if
(
this
.
props
.
sidebarOpen
)
{
document
.
body
.
classList
.
add
(
'
with-modals--active
'
);
}
else
{
...
...
@@ -67,6 +69,9 @@ class SidebarMenu extends ImmutablePureComponent {
render
()
{
const
{
sidebarOpen
,
onClose
,
intl
,
account
}
=
this
.
props
;
if
(
!
me
||
!
account
)
return
null
;
const
acct
=
account
.
get
(
'
acct
'
);
const
classes
=
classNames
(
'
sidebar-menu__root
'
,
{
...
...
app/javascript/gabsocial/features/ui/index.js
View file @
9ed74bcc
...
...
@@ -540,7 +540,7 @@ class UI extends React.PureComponent {
<
LoadingBarContainer
className
=
'
loading-bar
'
/>
<
ModalContainer
/>
<
UploadArea
active
=
{
draggingOver
}
onClose
=
{
this
.
closeUploadModal
}
/
>
<
SidebarMenu
/>
{
me
&&
<
SidebarMenu
/>
}
<
/div
>
<
/HotKeys
>
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment