Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
David Kempe
Meerkat
Commits
9dfba9c0
Commit
9dfba9c0
authored
Aug 24, 2020
by
StreatCodes
Browse files
Hide home button on viewer
parent
f457c78b
Changes
1
Hide whitespace changes
Inline
Side-by-side
frontend/src/viewer.jsx
View file @
9dfba9c0
...
...
@@ -45,6 +45,6 @@ export function Viewer({slug}) {
const
backgroundImage
=
dashboard
.
background
?
`url(
${
dashboard
.
background
}
)`
:
'
none
'
;
return
<
div
class
=
"dashboard view-only"
style
=
{
{
backgroundImage
:
backgroundImage
}
}
>
{
elements
}
<
button
class
=
"view-only-button"
onClick
=
{
e
=>
route
(
'
/
'
)
}
>
Home
</
button
>
{
/*
<button class="view-only-button" onClick={e => route('/')}>Home</button>
*/
}
</
div
>
}
\ No newline at end of file
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