Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
grady
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jan Maximilian Michal
grady
Commits
9c2d2bbe
Commit
9c2d2bbe
authored
6 years ago
by
robinwilliam.hundt
Browse files
Options
Downloads
Patches
Plain Diff
Fixed copy to clipboard
fixes
#137
parent
49c457e6
No related branches found
No related tags found
No related merge requests found
Pipeline
#89046
passed
6 years ago
Stage: build
Stage: test
Stage: build_image
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
frontend/src/components/submission_notes/toolbars/AnnotatedSubmissionTopToolbar.vue
+2
-7
2 additions, 7 deletions
...bmission_notes/toolbars/AnnotatedSubmissionTopToolbar.vue
with
2 additions
and
7 deletions
frontend/src/components/submission_notes/toolbars/AnnotatedSubmissionTopToolbar.vue
+
2
−
7
View file @
9c2d2bbe
...
@@ -28,6 +28,7 @@
...
@@ -28,6 +28,7 @@
import
CorrectionHelpCard
from
'
@/components/submission_notes/CorrectionHelpCard
'
import
CorrectionHelpCard
from
'
@/components/submission_notes/CorrectionHelpCard
'
import
{
mapState
}
from
'
vuex
'
import
{
mapState
}
from
'
vuex
'
import
ToggleFeedbackVisibilityButton
from
'
@/components/submission_notes/toolbars/ToggleFeedbackVisibilityButton
'
import
ToggleFeedbackVisibilityButton
from
'
@/components/submission_notes/toolbars/ToggleFeedbackVisibilityButton
'
import
{
SubmissionNotes
}
from
'
@/store/modules/submission-notes
'
;
export
default
{
export
default
{
components
:
{
components
:
{
...
@@ -40,15 +41,9 @@ export default {
...
@@ -40,15 +41,9 @@ export default {
copyMessage
:
'
Copy to clipboard
'
copyMessage
:
'
Copy to clipboard
'
}
}
},
},
computed
:
{
...
mapState
({
submission
:
state
=>
state
.
submissionNotes
.
submission
.
text
,
showFeedback
:
state
=>
state
.
submissionNotes
.
ui
.
showFeedback
})
},
methods
:
{
methods
:
{
copyToClipboard
()
{
copyToClipboard
()
{
this
.
$clipboard
(
this
.
submission
)
this
.
$clipboard
(
SubmissionNotes
.
state
.
submission
.
text
)
this
.
copyMessage
=
'
Copied!
'
this
.
copyMessage
=
'
Copied!
'
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
copyMessage
=
'
Copy to clipboard
'
this
.
copyMessage
=
'
Copy to clipboard
'
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment