-
Notifications
You must be signed in to change notification settings - Fork 11.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FIX] Remove sidebar header on admin embedded version #8334
Conversation
@@ -6,5 +6,9 @@ Template.burger.helpers({ | |||
if (Session.equals('isMenuOpen', true)) { | |||
return 'menu-opened'; | |||
} | |||
}, | |||
embeddedVersion() { | |||
console.log('burger', RocketChat.Layout.isEmbedded()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ops!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry :(
<div class="rooms-list"> | ||
{{#unless embeddedVersion}} | ||
<header class="sidebar__header"> | ||
{{> accountBox lighten=true modifier="--account" }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this account box
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can remove that, but I won't do that on this PR. This PR is about embedded view and not about accountBox.
<div class="rooms-list" aria-label="{{_ "Administration"}}"> | ||
{{#unless embeddedVersion}} | ||
<header class="sidebar__header"> | ||
{{> accountBox lighten=true modifier="--admin"}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also remove this account box
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can remove that, but I won't do that on this PR. This PR is about embedded view and not about accountBox.
{{> accountBox lighten=true modifier="--admin"}} | ||
<button class="sidebar-flex__back-button" data-action="back"> | ||
{{> icon block="sidebar-flex__back-icon" icon="back"}} | ||
<span>{{_ "Back_to_chat"}}</span> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change "Back_to_chat" to just "Back"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Less is More
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, it's easy to maintain translations :)
{{> accountBox lighten=true modifier="--account" }} | ||
<button class="sidebar-flex__back-button" data-action="back"> | ||
{{> icon block="sidebar-flex__back-icon" icon="back"}} | ||
<span>{{_ "Back_to_chat"}}</span> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change "Back_to_chat" to just "Back"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why?
[FIX] Remove sidebar header on admin embedded version
@RocketChat/core
Closes #8333