Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scratch-www
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
scratch-www
Commits
e43cb7ab
Commit
e43cb7ab
authored
Mar 02, 2020
by
Paul Kaplan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reorder and de-red report action on project page
parent
5a47ed96
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
22 deletions
+20
-22
src/views/preview/subactions.jsx
src/views/preview/subactions.jsx
+20
-20
src/views/preview/subactions.scss
src/views/preview/subactions.scss
+0
-2
No files found.
src/views/preview/subactions.jsx
View file @
e43cb7ab
...
@@ -29,6 +29,26 @@ const Subactions = props => (
...
@@ -29,6 +29,26 @@ const Subactions = props => (
{
/* eslint-enable react/jsx-sort-props */
}
{
/* eslint-enable react/jsx-sort-props */
}
</
div
>
</
div
>
<
FlexRow
className=
"action-buttons"
>
<
FlexRow
className=
"action-buttons"
>
{
(
props
.
canReport
)
&&
<
React
.
Fragment
>
<
Button
className=
"action-button report-button"
key=
"report-button"
onClick=
{
props
.
onReportClicked
}
>
<
FormattedMessage
id=
"general.report"
/>
</
Button
>
{
props
.
reportOpen
&&
(
<
ReportModal
isOpen
key=
"report-modal"
type=
"project"
onReport=
{
props
.
onReportSubmit
}
onRequestClose=
{
props
.
onReportClose
}
/>
)
}
</
React
.
Fragment
>
}
{
props
.
canAddToStudio
&&
{
props
.
canAddToStudio
&&
<
React
.
Fragment
>
<
React
.
Fragment
>
<
Button
<
Button
...
@@ -69,26 +89,6 @@ const Subactions = props => (
...
@@ -69,26 +89,6 @@ const Subactions = props => (
)
}
)
}
</
React
.
Fragment
>
</
React
.
Fragment
>
)
}
)
}
{
(
props
.
canReport
)
&&
<
React
.
Fragment
>
<
Button
className=
"action-button report-button"
key=
"report-button"
onClick=
{
props
.
onReportClicked
}
>
<
FormattedMessage
id=
"general.report"
/>
</
Button
>
{
props
.
reportOpen
&&
(
<
ReportModal
isOpen
key=
"report-modal"
type=
"project"
onReport=
{
props
.
onReportSubmit
}
onRequestClose=
{
props
.
onReportClose
}
/>
)
}
</
React
.
Fragment
>
}
</
FlexRow
>
</
FlexRow
>
</
FlexRow
>
</
FlexRow
>
);
);
...
...
src/views/preview/subactions.scss
View file @
e43cb7ab
...
@@ -88,8 +88,6 @@
...
@@ -88,8 +88,6 @@
}
}
&
.report-button
{
&
.report-button
{
background-color
:
$ui-coral
;
&
:before
{
&
:before
{
background-image
:
url("/svgs/project/report-white.svg")
;
background-image
:
url("/svgs/project/report-white.svg")
;
}
}
...
...
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