Commit 88972e49 authored by Bob Van Landuyt's avatar Bob Van Landuyt

Merge branch 'pms-copy-to-clipboard' into 'master'

Remove “to clipboard” from all copy buttons

See merge request gitlab-org/gitlab!17700
parents aa175994 05946123
...@@ -107,18 +107,18 @@ export default class BlobViewer { ...@@ -107,18 +107,18 @@ export default class BlobViewer {
toggleCopyButtonState() { toggleCopyButtonState() {
if (!this.copySourceBtn) return; if (!this.copySourceBtn) return;
if (this.simpleViewer.getAttribute('data-loaded')) { if (this.simpleViewer.getAttribute('data-loaded')) {
this.copySourceBtn.setAttribute('title', __('Copy source to clipboard')); this.copySourceBtn.setAttribute('title', __('Copy file contents'));
this.copySourceBtn.classList.remove('disabled'); this.copySourceBtn.classList.remove('disabled');
} else if (this.activeViewer === this.simpleViewer) { } else if (this.activeViewer === this.simpleViewer) {
this.copySourceBtn.setAttribute( this.copySourceBtn.setAttribute(
'title', 'title',
__('Wait for the source to load to copy it to the clipboard'), __('Wait for the file to load to copy its contents'),
); );
this.copySourceBtn.classList.add('disabled'); this.copySourceBtn.classList.add('disabled');
} else { } else {
this.copySourceBtn.setAttribute( this.copySourceBtn.setAttribute(
'title', 'title',
__('Switch to the source to copy it to the clipboard'), __('Switch to the source to copy the file contents'),
); );
this.copySourceBtn.classList.add('disabled'); this.copySourceBtn.classList.add('disabled');
} }
......
...@@ -294,7 +294,7 @@ export default { ...@@ -294,7 +294,7 @@ export default {
<span class="input-group-append"> <span class="input-group-append">
<clipboard-button <clipboard-button
:text="ingressExternalEndpoint" :text="ingressExternalEndpoint"
:title="s__('ClusterIntegration|Copy Ingress Endpoint to clipboard')" :title="s__('ClusterIntegration|Copy Ingress Endpoint')"
class="input-group-text js-clipboard-btn" class="input-group-text js-clipboard-btn"
/> />
</span> </span>
...@@ -472,7 +472,7 @@ export default { ...@@ -472,7 +472,7 @@ export default {
<span class="input-group-btn"> <span class="input-group-btn">
<clipboard-button <clipboard-button
:text="jupyterHostname" :text="jupyterHostname"
:title="s__('ClusterIntegration|Copy Jupyter Hostname to clipboard')" :title="s__('ClusterIntegration|Copy Jupyter Hostname')"
class="js-clipboard-btn" class="js-clipboard-btn"
/> />
</span> </span>
......
...@@ -103,7 +103,7 @@ export default { ...@@ -103,7 +103,7 @@ export default {
<span class="input-group-append"> <span class="input-group-append">
<clipboard-button <clipboard-button
:text="knativeExternalEndpoint" :text="knativeExternalEndpoint"
:title="s__('ClusterIntegration|Copy Knative Endpoint to clipboard')" :title="s__('ClusterIntegration|Copy Knative Endpoint')"
class="input-group-text js-knative-endpoint-clipboard-btn" class="input-group-text js-knative-endpoint-clipboard-btn"
/> />
</span> </span>
......
...@@ -121,7 +121,7 @@ export default { ...@@ -121,7 +121,7 @@ export default {
<div class="label label-monospace monospace" v-text="commit.short_id"></div> <div class="label label-monospace monospace" v-text="commit.short_id"></div>
<clipboard-button <clipboard-button
:text="commit.id" :text="commit.id"
:title="__('Copy commit SHA to clipboard')" :title="__('Copy commit SHA')"
class="btn btn-default" class="btn btn-default"
/> />
</div> </div>
......
...@@ -209,7 +209,7 @@ export default { ...@@ -209,7 +209,7 @@ export default {
</a> </a>
<clipboard-button <clipboard-button
:title="__('Copy file path to clipboard')" :title="__('Copy file path')"
:text="diffFile.file_path" :text="diffFile.file_path"
:gfm="gfmCopyText" :gfm="gfmCopyText"
css-class="btn-default btn-transparent btn-clipboard" css-class="btn-default btn-transparent btn-clipboard"
......
...@@ -41,7 +41,7 @@ export default { ...@@ -41,7 +41,7 @@ export default {
<clipboard-button <clipboard-button
:text="commit.id" :text="commit.id"
:title="__('Copy commit SHA to clipboard')" :title="__('Copy commit SHA')"
css-class="btn btn-clipboard btn-transparent" css-class="btn btn-clipboard btn-transparent"
/> />
......
...@@ -271,7 +271,7 @@ export default { ...@@ -271,7 +271,7 @@ export default {
return Object.values(this.getGraphAlerts(queries)); return Object.values(this.getGraphAlerts(queries));
}, },
showToast() { showToast() {
this.$toast.show(__('Link copied to clipboard')); this.$toast.show(__('Link copied'));
}, },
// TODO: END // TODO: END
generateLink(group, title, yLabel) { generateLink(group, title, yLabel) {
......
...@@ -82,7 +82,7 @@ export default { ...@@ -82,7 +82,7 @@ export default {
return this.graphData.type && this.graphData.type === type; return this.graphData.type && this.graphData.type === type;
}, },
showToast() { showToast() {
this.$toast.show(__('Link copied to clipboard')); this.$toast.show(__('Link copied'));
}, },
}, },
}; };
......
...@@ -143,7 +143,7 @@ export default { ...@@ -143,7 +143,7 @@ export default {
<span class="input-group-append"> <span class="input-group-append">
<clipboard-button <clipboard-button
:text="dockerBuildCommand" :text="dockerBuildCommand"
:title="s__('ContainerRegistry|Copy build command to clipboard')" :title="s__('ContainerRegistry|Copy build command')"
class="input-group-text" class="input-group-text"
/> />
</span> </span>
...@@ -154,7 +154,7 @@ export default { ...@@ -154,7 +154,7 @@ export default {
<span class="input-group-append"> <span class="input-group-append">
<clipboard-button <clipboard-button
:text="dockerPushCommand" :text="dockerPushCommand"
:title="s__('ContainerRegistry|Copy push command to clipboard')" :title="s__('ContainerRegistry|Copy push command')"
class="input-group-text" class="input-group-text"
/> />
</span> </span>
......
...@@ -144,7 +144,7 @@ export default { ...@@ -144,7 +144,7 @@ export default {
</div> </div>
<clipboard-button <clipboard-button
:text="commit.sha" :text="commit.sha"
:title="__('Copy commit SHA to clipboard')" :title="__('Copy commit SHA')"
tooltip-placement="bottom" tooltip-placement="bottom"
/> />
</div> </div>
......
...@@ -23,7 +23,7 @@ export default { ...@@ -23,7 +23,7 @@ export default {
<div class="url-text-field label label-monospace monospace">{{ uri }}</div> <div class="url-text-field label label-monospace monospace">{{ uri }}</div>
<clipboard-button <clipboard-button
:text="uri" :text="uri"
:title="s__('ServerlessURL|Copy URL to clipboard')" :title="s__('ServerlessURL|Copy URL')"
class="input-group-text js-clipboard-btn" class="input-group-text js-clipboard-btn"
/> />
<gl-button <gl-button
......
...@@ -90,7 +90,7 @@ export default { ...@@ -90,7 +90,7 @@ export default {
v-html="mr.sourceBranchLink" v-html="mr.sourceBranchLink"
/><clipboard-button /><clipboard-button
:text="branchNameClipboardData" :text="branchNameClipboardData"
:title="__('Copy branch name to clipboard')" :title="__('Copy branch name')"
css-class="btn-default btn-transparent btn-clipboard" css-class="btn-default btn-transparent btn-clipboard"
/> />
{{ s__('mrWidget|into') }} {{ s__('mrWidget|into') }}
......
...@@ -170,7 +170,7 @@ export default { ...@@ -170,7 +170,7 @@ export default {
> >
</a> </a>
<clipboard-button <clipboard-button
:title="__('Copy commit SHA to clipboard')" :title="__('Copy commit SHA')"
:text="mr.mergeCommitSha" :text="mr.mergeCommitSha"
css-class="btn-default btn-transparent btn-clipboard js-mr-merged-copy-sha" css-class="btn-default btn-transparent btn-clipboard js-mr-merged-copy-sha"
/> />
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* @example * @example
* <clipboard-button * <clipboard-button
* title="Copy to clipboard" * title="Copy"
* text="Content to be copied" * text="Content to be copied"
* css-class="btn-transparent" * css-class="btn-transparent"
* /> * />
......
...@@ -197,13 +197,13 @@ module BlobHelper ...@@ -197,13 +197,13 @@ module BlobHelper
end end
def copy_file_path_button(file_path) def copy_file_path_button(file_path)
clipboard_button(text: file_path, gfm: "`#{file_path}`", class: 'btn-clipboard btn-transparent', title: 'Copy file path to clipboard') clipboard_button(text: file_path, gfm: "`#{file_path}`", class: 'btn-clipboard btn-transparent', title: _('Copy file path'))
end end
def copy_blob_source_button(blob) def copy_blob_source_button(blob)
return unless blob.rendered_as_text?(ignore_errors: false) return unless blob.rendered_as_text?(ignore_errors: false)
clipboard_button(target: ".blob-content[data-blob-id='#{blob.id}']", class: "btn btn-sm js-copy-blob-source-btn", title: "Copy source to clipboard") clipboard_button(target: ".blob-content[data-blob-id='#{blob.id}']", class: "btn btn-sm js-copy-blob-source-btn", title: _("Copy file contents"))
end end
def open_raw_blob_button(blob) def open_raw_blob_button(blob)
......
...@@ -21,7 +21,7 @@ module ButtonHelper ...@@ -21,7 +21,7 @@ module ButtonHelper
# See http://clipboardjs.com/#usage # See http://clipboardjs.com/#usage
def clipboard_button(data = {}) def clipboard_button(data = {})
css_class = data[:class] || 'btn-clipboard btn-transparent' css_class = data[:class] || 'btn-clipboard btn-transparent'
title = data[:title] || _('Copy to clipboard') title = data[:title] || _('Copy')
button_text = data[:button_text] || '' button_text = data[:button_text] || ''
hide_tooltip = data[:hide_tooltip] || false hide_tooltip = data[:hide_tooltip] || false
hide_button_icon = data[:hide_button_icon] || false hide_button_icon = data[:hide_button_icon] || false
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
.input-group .input-group
%input.label.label-monospace.monospace{ id: "application_id", type: "text", autocomplete: 'off', value: @application.uid, readonly: true } %input.label.label-monospace.monospace{ id: "application_id", type: "text", autocomplete: 'off', value: @application.uid, readonly: true }
.input-group-append .input-group-append
= clipboard_button(target: '#application_id', title: _("Copy ID to clipboard"), class: "btn btn btn-default") = clipboard_button(target: '#application_id', title: _("Copy ID"), class: "btn btn btn-default")
%tr %tr
%td %td
= _('Secret') = _('Secret')
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
.input-group .input-group
%input.label.label-monospace.monospace{ id: "secret", type: "text", autocomplete: 'off', value: @application.secret, readonly: true } %input.label.label-monospace.monospace{ id: "secret", type: "text", autocomplete: 'off', value: @application.secret, readonly: true }
.input-group-append .input-group-append
= clipboard_button(target: '#secret', title: _("Copy secret to clipboard"), class: "btn btn btn-default") = clipboard_button(target: '#secret', title: _("Copy secret"), class: "btn btn btn-default")
%tr %tr
%td %td
= _('Callback URL') = _('Callback URL')
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
- if @new_impersonation_token - if @new_impersonation_token
= render "shared/personal_access_tokens_created_container", new_token_value: @new_impersonation_token, = render "shared/personal_access_tokens_created_container", new_token_value: @new_impersonation_token,
container_title: 'Your New Impersonation Token', container_title: 'Your New Impersonation Token',
clipboard_button_title: 'Copy impersonation token to clipboard' clipboard_button_title: _('Copy impersonation token')
= render "shared/personal_access_tokens_form", path: admin_user_impersonation_tokens_path, impersonation: true, token: @impersonation_token, scopes: @scopes = render "shared/personal_access_tokens_form", path: admin_user_impersonation_tokens_path, impersonation: true, token: @impersonation_token, scopes: @scopes
......
...@@ -8,11 +8,11 @@ ...@@ -8,11 +8,11 @@
%li %li
= _("Specify the following URL during the Runner setup:") = _("Specify the following URL during the Runner setup:")
%code#coordinator_address= root_url(only_path: false) %code#coordinator_address= root_url(only_path: false)
= clipboard_button(target: '#coordinator_address', title: _("Copy URL to clipboard"), class: "btn-transparent btn-clipboard") = clipboard_button(target: '#coordinator_address', title: _("Copy URL"), class: "btn-transparent btn-clipboard")
%li %li
= _("Use the following registration token during setup:") = _("Use the following registration token during setup:")
%code#registration_token= registration_token %code#registration_token= registration_token
= clipboard_button(target: '#registration_token', title: _("Copy token to clipboard"), class: "btn-transparent btn-clipboard") = clipboard_button(target: '#registration_token', title: _("Copy token"), class: "btn-transparent btn-clipboard")
.prepend-top-10.append-bottom-10 .prepend-top-10.append-bottom-10
= button_to _("Reset runners registration token"), reset_token_url, = button_to _("Reset runners registration token"), reset_token_url,
method: :put, class: 'btn btn-default', method: :put, class: 'btn btn-default',
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
.input-group .input-group
%input.label.label-monospace.monospace{ id: "application_id", type: "text", autocomplete: 'off', value: @application.uid, readonly: true } %input.label.label-monospace.monospace{ id: "application_id", type: "text", autocomplete: 'off', value: @application.uid, readonly: true }
.input-group-append .input-group-append
= clipboard_button(target: '#application_id', title: _("Copy ID to clipboard"), class: "btn btn btn-default") = clipboard_button(target: '#application_id', title: _("Copy ID"), class: "btn btn btn-default")
%tr %tr
%td %td
= _('Secret') = _('Secret')
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
.input-group .input-group
%input.label.label-monospace.monospace{ id: "secret", type: "text", autocomplete: 'off', value: @application.secret, readonly: true } %input.label.label-monospace.monospace{ id: "secret", type: "text", autocomplete: 'off', value: @application.secret, readonly: true }
.input-group-append .input-group-append
= clipboard_button(target: '#secret', title: _("Copy secret to clipboard"), class: "btn btn btn-default") = clipboard_button(target: '#secret', title: _("Copy secret"), class: "btn btn btn-default")
%tr %tr
%td %td
= _('Callback URL') = _('Callback URL')
......
...@@ -6,6 +6,6 @@ ...@@ -6,6 +6,6 @@
%span %span
= text_field_tag :push_to_create_tip, push_to_create_project_command, class: "js-select-on-focus form-control monospace", readonly: true, aria: { label: _("Push project from command line") } = text_field_tag :push_to_create_tip, push_to_create_project_command, class: "js-select-on-focus form-control monospace", readonly: true, aria: { label: _("Push project from command line") }
%span.input-group-append %span.input-group-append
= clipboard_button(text: push_to_create_project_command, title: _("Copy command to clipboard"), class: 'input-group-text', placement: "right") = clipboard_button(text: push_to_create_project_command, title: _("Copy command"), class: 'input-group-text', placement: "right")
%p %p
= link_to("What does this command do?", help_page_path("gitlab-basics/create-project", anchor: "push-to-create-a-new-project"), target: "_blank") = link_to("What does this command do?", help_page_path("gitlab-basics/create-project", anchor: "push-to-create-a-new-project"), target: "_blank")
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
.input-group .input-group
= text_field_tag :ssh_project_clone, project.ssh_url_to_repo, class: "js-select-on-focus form-control qa-ssh-clone-url", readonly: true, aria: { label: 'Project clone URL' } = text_field_tag :ssh_project_clone, project.ssh_url_to_repo, class: "js-select-on-focus form-control qa-ssh-clone-url", readonly: true, aria: { label: 'Project clone URL' }
.input-group-append .input-group-append
= clipboard_button(target: '#ssh_project_clone', title: _("Copy URL to clipboard"), class: "input-group-text btn-default btn-clipboard") = clipboard_button(target: '#ssh_project_clone', title: _("Copy URL"), class: "input-group-text btn-default btn-clipboard")
= render_if_exists 'projects/buttons/geo' = render_if_exists 'projects/buttons/geo'
- if http_enabled? - if http_enabled?
%li.pt-2 %li.pt-2
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
.input-group .input-group
= text_field_tag :http_project_clone, project.http_url_to_repo, class: "js-select-on-focus form-control qa-http-clone-url", readonly: true, aria: { label: 'Project clone URL' } = text_field_tag :http_project_clone, project.http_url_to_repo, class: "js-select-on-focus form-control qa-http-clone-url", readonly: true, aria: { label: 'Project clone URL' }
.input-group-append .input-group-append
= clipboard_button(target: '#http_project_clone', title: _("Copy URL to clipboard"), class: "input-group-text btn-default btn-clipboard") = clipboard_button(target: '#http_project_clone', title: _("Copy URL"), class: "input-group-text btn-default btn-clipboard")
= render_if_exists 'projects/buttons/geo' = render_if_exists 'projects/buttons/geo'
= render_if_exists 'projects/buttons/kerberos_clone_field' = render_if_exists 'projects/buttons/kerberos_clone_field'
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
%strong %strong
#{ s_('CommitBoxTitle|Commit') } #{ s_('CommitBoxTitle|Commit') }
%span.commit-sha{ data: { qa_selector: 'commit_sha_content' } }= @commit.short_id %span.commit-sha{ data: { qa_selector: 'commit_sha_content' } }= @commit.short_id
= clipboard_button(text: @commit.id, title: _('Copy commit SHA to clipboard')) = clipboard_button(text: @commit.id, title: _('Copy commit SHA'))
%span.d-none.d-sm-inline= _('authored') %span.d-none.d-sm-inline= _('authored')
#{time_ago_with_tooltip(@commit.authored_date)} #{time_ago_with_tooltip(@commit.authored_date)}
%span= s_('ByAuthor|by') %span= s_('ByAuthor|by')
......
...@@ -56,5 +56,5 @@ ...@@ -56,5 +56,5 @@
.commit-sha-group.d-none.d-sm-flex .commit-sha-group.d-none.d-sm-flex
.label.label-monospace.monospace .label.label-monospace.monospace
= commit.short_id = commit.short_id
= clipboard_button(text: commit.id, title: _("Copy commit SHA to clipboard"), class: "btn btn-default", container: "body") = clipboard_button(text: commit.id, title: _("Copy commit SHA"), class: "btn btn-default", container: "body")
= link_to_browse_code(project, commit) = link_to_browse_code(project, commit)
...@@ -7,12 +7,12 @@ ...@@ -7,12 +7,12 @@
.input-group .input-group
= text_field_tag 'deploy-token-user', deploy_token.username, readonly: true, class: 'deploy-token-field form-control js-select-on-focus qa-deploy-token-user' = text_field_tag 'deploy-token-user', deploy_token.username, readonly: true, class: 'deploy-token-field form-control js-select-on-focus qa-deploy-token-user'
.input-group-append .input-group-append
= clipboard_button(text: deploy_token.username, title: s_('DeployTokens|Copy username to clipboard'), placement: 'left') = clipboard_button(text: deploy_token.username, title: s_('DeployTokens|Copy username'), placement: 'left')
%span.deploy-token-help-block.prepend-top-5.text-success= s_("DeployTokens|Use this username as a login.") %span.deploy-token-help-block.prepend-top-5.text-success= s_("DeployTokens|Use this username as a login.")
.form-group .form-group
.input-group .input-group
= text_field_tag 'deploy-token', deploy_token.token, readonly: true, class: 'deploy-token-field form-control js-select-on-focus qa-deploy-token' = text_field_tag 'deploy-token', deploy_token.token, readonly: true, class: 'deploy-token-field form-control js-select-on-focus qa-deploy-token'
.input-group-append .input-group-append
= clipboard_button(text: deploy_token.token, title: s_('DeployTokens|Copy deploy token to clipboard'), placement: 'left') = clipboard_button(text: deploy_token.token, title: s_('DeployTokens|Copy deploy token'), placement: 'left')
%span.deploy-token-help-block.prepend-top-5.text-danger= s_("DeployTokens|Use this token as a password. Make sure you save it - you won't be able to access it again.") %span.deploy-token-help-block.prepend-top-5.text-danger= s_("DeployTokens|Use this token as a password. Make sure you save it - you won't be able to access it again.")
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
%p %p
%strong Step 1. %strong Step 1.
Fetch and check out the branch for this merge request Fetch and check out the branch for this merge request
= clipboard_button(target: "pre#merge-info-1", title: "Copy commands to clipboard") = clipboard_button(target: "pre#merge-info-1", title: _("Copy commands"))
%pre.dark#merge-info-1 %pre.dark#merge-info-1
- if @merge_request.for_fork? - if @merge_request.for_fork?
:preserve :preserve
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
%p %p
%strong Step 3. %strong Step 3.
Merge the branch and fix any conflicts that come up Merge the branch and fix any conflicts that come up
= clipboard_button(target: "pre#merge-info-3", title: "Copy commands to clipboard") = clipboard_button(target: "pre#merge-info-3", title: _("Copy commands"))
%pre.dark#merge-info-3 %pre.dark#merge-info-3
- if @merge_request.for_fork? - if @merge_request.for_fork?
:preserve :preserve
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
%p %p
%strong Step 4. %strong Step 4.
Push the result of the merge to GitLab Push the result of the merge to GitLab
= clipboard_button(target: "pre#merge-info-4", title: "Copy commands to clipboard") = clipboard_button(target: "pre#merge-info-4", title: _("Copy commands"))
%pre.dark#merge-info-4 %pre.dark#merge-info-4
:preserve :preserve
git push origin "#{h @merge_request.target_branch}" git push origin "#{h @merge_request.target_branch}"
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
= custom_icon('ellipsis_v') = custom_icon('ellipsis_v')
%ul.dropdown-menu.more-actions-dropdown.dropdown-open-left %ul.dropdown-menu.more-actions-dropdown.dropdown-open-left
%li %li
= clipboard_button(text: noteable_note_url(note), title: 'Copy reference to clipboard', button_text: 'Copy link', class: 'btn-clipboard', hide_tooltip: true, hide_button_icon: true) = clipboard_button(text: noteable_note_url(note), title: _('Copy reference'), button_text: _('Copy link'), class: 'btn-clipboard', hide_tooltip: true, hide_button_icon: true)
- unless is_current_user - unless is_current_user
%li %li
= link_to new_abuse_report_path(user_id: note.author.id, ref_url: noteable_note_url(note)) do = link_to new_abuse_report_path(user_id: note.author.id, ref_url: noteable_note_url(note)) do
......
...@@ -58,4 +58,4 @@ ...@@ -58,4 +58,4 @@
= sprite_icon('ellipsis_h', size: 12) = sprite_icon('ellipsis_h', size: 12)
%span.js-details-content.hide %span.js-details-content.hide
= link_to @pipeline.sha, project_commit_path(@project, @pipeline.sha), class: "commit-sha commit-hash-full" = link_to @pipeline.sha, project_commit_path(@project, @pipeline.sha), class: "commit-sha commit-hash-full"
= clipboard_button(text: @pipeline.sha, title: "Copy commit SHA to clipboard") = clipboard_button(text: @pipeline.sha, title: _("Copy commit SHA"))
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
%td %td
- if trigger.has_token_exposed? - if trigger.has_token_exposed?
%span= trigger.token %span= trigger.token
= clipboard_button(text: trigger.token, title: "Copy trigger token to clipboard") = clipboard_button(text: trigger.token, title: _("Copy trigger token"))
- else - else
%span= trigger.short_token %span= trigger.short_token
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
= text_field_tag :project_clone, default_url_to_repo(project), class: "js-select-on-focus form-control", readonly: true, aria: { label: 'Project clone URL' } = text_field_tag :project_clone, default_url_to_repo(project), class: "js-select-on-focus form-control", readonly: true, aria: { label: 'Project clone URL' }
.input-group-append .input-group-append
= clipboard_button(target: '#project_clone', title: _("Copy URL to clipboard"), class: "input-group-text btn-default btn-clipboard") = clipboard_button(target: '#project_clone', title: _("Copy URL"), class: "input-group-text btn-default btn-clipboard")
= render_if_exists 'shared/geo_modal_button' = render_if_exists 'shared/geo_modal_button'
......
- container_title = local_assigns.fetch(:container_title, _('Your New Personal Access Token')) - container_title = local_assigns.fetch(:container_title, _('Your New Personal Access Token'))
- clipboard_button_title = local_assigns.fetch(:clipboard_button_title, _('Copy personal access token to clipboard')) - clipboard_button_title = local_assigns.fetch(:clipboard_button_title, _('Copy personal access token'))
.created-personal-access-token-container .created-personal-access-token-container
%h5.prepend-top-0 %h5.prepend-top-0
......
...@@ -148,13 +148,13 @@ ...@@ -148,13 +148,13 @@
- project_ref = issuable_sidebar[:reference] - project_ref = issuable_sidebar[:reference]
.block.project-reference .block.project-reference
.sidebar-collapsed-icon.dont-change-state .sidebar-collapsed-icon.dont-change-state
= clipboard_button(text: project_ref, title: _('Copy reference to clipboard'), placement: "left", boundary: 'viewport') = clipboard_button(text: project_ref, title: _('Copy reference'), placement: "left", boundary: 'viewport')
.cross-project-reference.hide-collapsed .cross-project-reference.hide-collapsed
%span %span
= _('Reference:') = _('Reference:')
%cite{ title: project_ref } %cite{ title: project_ref }
= project_ref = project_ref
= clipboard_button(text: project_ref, title: _('Copy reference to clipboard'), placement: "left", boundary: 'viewport') = clipboard_button(text: project_ref, title: _('Copy reference'), placement: "left", boundary: 'viewport')
- if issuable_sidebar.dig(:current_user, :can_move) - if issuable_sidebar.dig(:current_user, :can_move)
.block.js-sidebar-move-issue-block .block.js-sidebar-move-issue-block
......
...@@ -142,10 +142,10 @@ ...@@ -142,10 +142,10 @@
- if milestone_ref.present? - if milestone_ref.present?
.block.reference .block.reference
.sidebar-collapsed-icon.dont-change-state .sidebar-collapsed-icon.dont-change-state
= clipboard_button(text: milestone_ref, title: "Copy reference to clipboard", placement: "left", boundary: 'viewport') = clipboard_button(text: milestone_ref, title: _("Copy reference"), placement: "left", boundary: 'viewport')
.cross-project-reference.hide-collapsed .cross-project-reference.hide-collapsed
%span %span
Reference: Reference:
%cite{ title: milestone_ref } %cite{ title: milestone_ref }
= milestone_ref = milestone_ref
= clipboard_button(text: milestone_ref, title: "Copy reference to clipboard", placement: "left", boundary: 'viewport') = clipboard_button(text: milestone_ref, title: _("Copy reference"), placement: "left", boundary: 'viewport')
...@@ -46,5 +46,5 @@ ...@@ -46,5 +46,5 @@
%strong.embed-toggle-list-item= _("Share") %strong.embed-toggle-list-item= _("Share")
%input.js-snippet-url-area.snippet-embed-input.form-control{ type: "text", autocomplete: 'off', value: snippet_embed } %input.js-snippet-url-area.snippet-embed-input.form-control{ type: "text", autocomplete: 'off', value: snippet_embed }
.input-group-append .input-group-append
= clipboard_button(title: s_('Copy to clipboard'), class: 'js-clipboard-btn snippet-clipboard-btn btn btn-default', target: '.js-snippet-url-area') = clipboard_button(title: _('Copy'), class: 'js-clipboard-btn snippet-clipboard-btn btn btn-default', target: '.js-snippet-url-area')
.clearfix .clearfix
...@@ -30,7 +30,7 @@ en: ...@@ -30,7 +30,7 @@ en:
origin: Origin origin: Origin
line: line line: line
line_capitalized: Line line_capitalized: Line
copy_to_clipboard: Copy to clipboard copy_to_clipboard: Copy
query_plan: Query Plan query_plan: Query Plan
events: Events events: Events
percent: '%' percent: '%'
......
...@@ -15,6 +15,6 @@ below to create one: ...@@ -15,6 +15,6 @@ below to create one:
![Jira API token](img/jira_api_token.png) ![Jira API token](img/jira_api_token.png)
1. Click **Copy to clipboard**, or click **View** and write down the new API token. It is required when [configuring GitLab](jira.md#configuring-gitlab). 1. Click **Copy**, or click **View** and write down the new API token. It is required when [configuring GitLab](jira.md#configuring-gitlab).
The Jira configuration is complete. You need the newly created token, and the associated email address, when [configuring GitLab](jira.md#configuring-gitlab) in the next section. The Jira configuration is complete. You need the newly created token, and the associated email address, when [configuring GitLab](jira.md#configuring-gitlab) in the next section.
...@@ -141,9 +141,9 @@ for the issue. This will automatically enable if you participate in the issue in ...@@ -141,9 +141,9 @@ for the issue. This will automatically enable if you participate in the issue in
#### 14. Reference #### 14. Reference
- A quick "copy to clipboard" button for that issue's reference, which looks like `foo/bar#xxx`, - A quick "copy" button for that issue's reference, which looks like
where `foo` is the `username` or `groupname`, `bar` is the `project-name`, and `foo/bar#xxx`, where `foo` is the `username` or `groupname`, `bar` is the
`xxx` is the issue number. `project-name`, and `xxx` is the issue number.
#### 15. Edit #### 15. Edit
......
...@@ -52,7 +52,7 @@ Here's how the process would look like: ...@@ -52,7 +52,7 @@ Here's how the process would look like:
![Check out branch button](img/checkout_button.png) ![Check out branch button](img/checkout_button.png)
1. Use the copy to clipboard button to copy the first command and paste them 1. Use the copy button to copy the first command and paste them
in your terminal: in your terminal:
```sh ```sh
......
...@@ -70,8 +70,8 @@ To embed a snippet, first make sure that: ...@@ -70,8 +70,8 @@ To embed a snippet, first make sure that:
- In **Project > Settings > Permissions**, the snippets permissions are - In **Project > Settings > Permissions**, the snippets permissions are
set to **Everyone with access** set to **Everyone with access**
Once the above conditions are met, the "Embed" section will appear in your snippet Once the above conditions are met, the "Embed" section will appear in your
where you can simply click on the "Copy to clipboard" button. This copies a one-line snippet where you can simply click on the "Copy" button. This copies a one-line
script that you can add to any website or blog post. script that you can add to any website or blog post.
Here's how an example code looks like: Here's how an example code looks like:
......
...@@ -8,7 +8,7 @@ import { s__, __, sprintf } from '~/locale'; ...@@ -8,7 +8,7 @@ import { s__, __, sprintf } from '~/locale';
import createFlash from '~/flash'; import createFlash from '~/flash';
export default { export default {
COPY_TO_CLIPBOARD: __('Copy to clipboard'), COPY_TO_CLIPBOARD: __('Copy'),
RESET_KEY: __('Reset key'), RESET_KEY: __('Reset key'),
components: { components: {
GlButton, GlButton,
......
...@@ -8,9 +8,9 @@ import Callout from '~/vue_shared/components/callout.vue'; ...@@ -8,9 +8,9 @@ import Callout from '~/vue_shared/components/callout.vue';
export default { export default {
modalTitle: s__('FeatureFlags|Configure feature flags'), modalTitle: s__('FeatureFlags|Configure feature flags'),
apiUrlLabelText: s__('FeatureFlags|API URL'), apiUrlLabelText: s__('FeatureFlags|API URL'),
apiUrlCopyText: __('Copy URL to clipboard'), apiUrlCopyText: __('Copy URL'),
instanceIdLabelText: s__('FeatureFlags|Instance ID'), instanceIdLabelText: s__('FeatureFlags|Instance ID'),
instanceIdCopyText: __('Copy ID to clipboard'), instanceIdCopyText: __('Copy ID'),
regenerateInstanceIdTooltip: __('Regenerate instance ID'), regenerateInstanceIdTooltip: __('Regenerate instance ID'),
instanceIdRegenerateError: __('Unable to generate new instance ID'), instanceIdRegenerateError: __('Unable to generate new instance ID'),
instanceIdRegenerateText: __( instanceIdRegenerateText: __(
......
...@@ -65,7 +65,7 @@ export default { ...@@ -65,7 +65,7 @@ export default {
/> />
<div class="input-group-append"> <div class="input-group-append">
<clipboard-button <clipboard-button
:title="__('Copy to clipboard')" :title="__('Copy')"
:text="incomingEmail" :text="incomingEmail"
css-class="btn qa-clipboard-button" css-class="btn qa-clipboard-button"
/> />
......
...@@ -6,7 +6,7 @@ import { __, sprintf } from '~/locale'; ...@@ -6,7 +6,7 @@ import { __, sprintf } from '~/locale';
import createFlash from '~/flash'; import createFlash from '~/flash';
export default { export default {
copyToClipboard: __('Copy to clipboard'), copyToClipboard: __('Copy'),
components: { components: {
GlButton, GlButton,
GlFormGroup, GlFormGroup,
......
...@@ -37,8 +37,8 @@ export default { ...@@ -37,8 +37,8 @@ export default {
computed: { computed: {
copyToClipboard() { copyToClipboard() {
return { return {
script: s__('VisualReviewApp|Copy script to clipboard'), script: s__('VisualReviewApp|Copy script'),
mrId: s__('VisualReviewApp|Copy merge request ID to clipboard'), mrId: s__('VisualReviewApp|Copy merge request ID'),
}; };
}, },
copyString() { copyString() {
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
.row .row
.col-lg-8.col-md-12.input-group .col-lg-8.col-md-12.input-group
= text_field_tag :url, "#{proxy_url}", class: 'js-dependency-proxy-url form-control', readonly: true = text_field_tag :url, "#{proxy_url}", class: 'js-dependency-proxy-url form-control', readonly: true
= clipboard_button(text: "#{proxy_url}", title: _("Copy %{proxy_url} to clipboard") % { proxy_url: proxy_url }) = clipboard_button(text: "#{proxy_url}", title: _("Copy %{proxy_url}") % { proxy_url: proxy_url })
.row .row
.col-12.help-block.prepend-top-10 .col-12.help-block.prepend-top-10
......
...@@ -3,4 +3,4 @@ ...@@ -3,4 +3,4 @@
.clipboard-input-group.input-group .clipboard-input-group.input-group
= text_field_tag field, value, class: "js-select-on-focus form-control bg-white", readonly: true, aria: { label: label_text } = text_field_tag field, value, class: "js-select-on-focus form-control bg-white", readonly: true, aria: { label: label_text }
.input-group-append .input-group-append
= clipboard_button(target: "##{field}", title: _("Copy URL to clipboard"), class: "btn-default btn-gray") = clipboard_button(target: "##{field}", title: _("Copy URL"), class: "btn-default btn-gray")
...@@ -3,4 +3,4 @@ ...@@ -3,4 +3,4 @@
.clipboard-input-group.input-group .clipboard-input-group.input-group
= text_field_tag field, value, class: "js-select-on-focus form-control", readonly: true, aria: { label: label_text } = text_field_tag field, value, class: "js-select-on-focus form-control", readonly: true, aria: { label: label_text }
.input-group-append{ class: "#{ 'd-none' unless show_clipboard }" } .input-group-append{ class: "#{ 'd-none' unless show_clipboard }" }
= clipboard_button(target: "##{field}", title: _("Copy URL to clipboard"), class: "btn-default btn-gray") = clipboard_button(target: "##{field}", title: _("Copy URL"), class: "btn-default btn-gray")
...@@ -7,5 +7,5 @@ ...@@ -7,5 +7,5 @@
.input-group .input-group
= text_field_tag :kerberos_project_clone, project.kerberos_url_to_repo, class: "js-select-on-focus form-control qa-krb5-clone-url", readonly: true, aria: { label: 'Project clone URL' } = text_field_tag :kerberos_project_clone, project.kerberos_url_to_repo, class: "js-select-on-focus form-control qa-krb5-clone-url", readonly: true, aria: { label: 'Project clone URL' }
.input-group-append .input-group-append
= clipboard_button(target: '#kerberos_project_clone', title: _("Copy URL to clipboard"), class: "input-group-text btn-default btn-clipboard") = clipboard_button(target: '#kerberos_project_clone', title: _("Copy URL"), class: "input-group-text btn-default btn-clipboard")
= render_if_exists 'projects/buttons/geo' = render_if_exists 'projects/buttons/geo'
...@@ -3399,13 +3399,13 @@ msgstr "" ...@@ -3399,13 +3399,13 @@ msgstr ""
msgid "ClusterIntegration|Copy CA Certificate" msgid "ClusterIntegration|Copy CA Certificate"
msgstr "" msgstr ""
msgid "ClusterIntegration|Copy Ingress Endpoint to clipboard" msgid "ClusterIntegration|Copy Ingress Endpoint"
msgstr "" msgstr ""
msgid "ClusterIntegration|Copy Jupyter Hostname to clipboard" msgid "ClusterIntegration|Copy Jupyter Hostname"
msgstr "" msgstr ""
msgid "ClusterIntegration|Copy Knative Endpoint to clipboard" msgid "ClusterIntegration|Copy Knative Endpoint"
msgstr "" msgstr ""
msgid "ClusterIntegration|Copy Kubernetes cluster name" msgid "ClusterIntegration|Copy Kubernetes cluster name"
...@@ -4196,10 +4196,10 @@ msgstr "" ...@@ -4196,10 +4196,10 @@ msgstr ""
msgid "ContainerRegistry|Container Registry" msgid "ContainerRegistry|Container Registry"
msgstr "" msgstr ""
msgid "ContainerRegistry|Copy build command to clipboard" msgid "ContainerRegistry|Copy build command"
msgstr "" msgstr ""
msgid "ContainerRegistry|Copy push command to clipboard" msgid "ContainerRegistry|Copy push command"
msgstr "" msgstr ""
msgid "ContainerRegistry|Docker connection error" msgid "ContainerRegistry|Docker connection error"
...@@ -4330,16 +4330,19 @@ msgstr "" ...@@ -4330,16 +4330,19 @@ msgstr ""
msgid "Copied labels and milestone from %{source_issuable_reference}." msgid "Copied labels and milestone from %{source_issuable_reference}."
msgstr "" msgstr ""
msgid "Copy"
msgstr ""
msgid "Copy %{http_label} clone URL" msgid "Copy %{http_label} clone URL"
msgstr "" msgstr ""
msgid "Copy %{protocol} clone URL" msgid "Copy %{protocol} clone URL"
msgstr "" msgstr ""
msgid "Copy %{proxy_url} to clipboard" msgid "Copy %{proxy_url}"
msgstr "" msgstr ""
msgid "Copy ID to clipboard" msgid "Copy ID"
msgstr "" msgstr ""
msgid "Copy KRB5 clone URL" msgid "Copy KRB5 clone URL"
...@@ -4351,19 +4354,28 @@ msgstr "" ...@@ -4351,19 +4354,28 @@ msgstr ""
msgid "Copy SSH public key" msgid "Copy SSH public key"
msgstr "" msgstr ""
msgid "Copy URL to clipboard" msgid "Copy URL"
msgstr ""
msgid "Copy branch name"
msgstr ""
msgid "Copy command"
msgstr ""
msgid "Copy commands"
msgstr "" msgstr ""
msgid "Copy branch name to clipboard" msgid "Copy commit SHA"
msgstr "" msgstr ""
msgid "Copy command to clipboard" msgid "Copy file contents"
msgstr "" msgstr ""
msgid "Copy commit SHA to clipboard" msgid "Copy file path"
msgstr "" msgstr ""
msgid "Copy file path to clipboard" msgid "Copy impersonation token"
msgstr "" msgstr ""
msgid "Copy labels and milestone from %{source_issuable_reference}." msgid "Copy labels and milestone from %{source_issuable_reference}."
...@@ -4375,22 +4387,19 @@ msgstr "" ...@@ -4375,22 +4387,19 @@ msgstr ""
msgid "Copy link" msgid "Copy link"
msgstr "" msgstr ""
msgid "Copy personal access token to clipboard" msgid "Copy personal access token"
msgstr ""
msgid "Copy reference to clipboard"
msgstr "" msgstr ""
msgid "Copy secret to clipboard" msgid "Copy reference"
msgstr "" msgstr ""
msgid "Copy source to clipboard" msgid "Copy secret"
msgstr "" msgstr ""
msgid "Copy to clipboard" msgid "Copy token"
msgstr "" msgstr ""
msgid "Copy token to clipboard" msgid "Copy trigger token"
msgstr "" msgstr ""
msgid "Could not add admins as members" msgid "Could not add admins as members"
...@@ -5166,10 +5175,10 @@ msgstr "" ...@@ -5166,10 +5175,10 @@ msgstr ""
msgid "DeployTokens|Allows read-only access to the repository" msgid "DeployTokens|Allows read-only access to the repository"
msgstr "" msgstr ""
msgid "DeployTokens|Copy deploy token to clipboard" msgid "DeployTokens|Copy deploy token"
msgstr "" msgstr ""
msgid "DeployTokens|Copy username to clipboard" msgid "DeployTokens|Copy username"
msgstr "" msgstr ""
msgid "DeployTokens|Create deploy token" msgid "DeployTokens|Create deploy token"
...@@ -9464,7 +9473,7 @@ msgid_plural "Limited to showing %d events at most" ...@@ -9464,7 +9473,7 @@ msgid_plural "Limited to showing %d events at most"
msgstr[0] "" msgstr[0] ""
msgstr[1] "" msgstr[1] ""
msgid "Link copied to clipboard" msgid "Link copied"
msgstr "" msgstr ""
msgid "Linked emails (%{email_count})" msgid "Linked emails (%{email_count})"
...@@ -14384,7 +14393,7 @@ msgstr "" ...@@ -14384,7 +14393,7 @@ msgstr ""
msgid "ServerlessDetails|pods in use" msgid "ServerlessDetails|pods in use"
msgstr "" msgstr ""
msgid "ServerlessURL|Copy URL to clipboard" msgid "ServerlessURL|Copy URL"
msgstr "" msgstr ""
msgid "Serverless| In order to start using functions as a service, you must first install Knative on your Kubernetes cluster." msgid "Serverless| In order to start using functions as a service, you must first install Knative on your Kubernetes cluster."
...@@ -15565,7 +15574,7 @@ msgstr "" ...@@ -15565,7 +15574,7 @@ msgstr ""
msgid "Switch to GitLab Next" msgid "Switch to GitLab Next"
msgstr "" msgstr ""
msgid "Switch to the source to copy it to the clipboard" msgid "Switch to the source to copy the file contents"
msgstr "" msgstr ""
msgid "Sync information" msgid "Sync information"
...@@ -17953,10 +17962,10 @@ msgstr "" ...@@ -17953,10 +17962,10 @@ msgstr ""
msgid "VisualReviewApp|%{stepStart}Step 5%{stepEnd}. Leave feedback in the Review App." msgid "VisualReviewApp|%{stepStart}Step 5%{stepEnd}. Leave feedback in the Review App."
msgstr "" msgstr ""
msgid "VisualReviewApp|Copy merge request ID to clipboard" msgid "VisualReviewApp|Copy merge request ID"
msgstr "" msgstr ""
msgid "VisualReviewApp|Copy script to clipboard" msgid "VisualReviewApp|Copy script"
msgstr "" msgstr ""
msgid "VisualReviewApp|Enable Visual Reviews" msgid "VisualReviewApp|Enable Visual Reviews"
...@@ -18022,7 +18031,7 @@ msgstr "" ...@@ -18022,7 +18031,7 @@ msgstr ""
msgid "Vulnerability|Severity" msgid "Vulnerability|Severity"
msgstr "" msgstr ""
msgid "Wait for the source to load to copy it to the clipboard" msgid "Wait for the file to load to copy its contents"
msgstr "" msgstr ""
msgid "Waiting for performance data" msgid "Waiting for performance data"
......
...@@ -90,7 +90,7 @@ exports[`Repository last commit component renders commit widget 1`] = ` ...@@ -90,7 +90,7 @@ exports[`Repository last commit component renders commit widget 1`] = `
<clipboardbutton-stub <clipboardbutton-stub
cssclass="btn-default" cssclass="btn-default"
text="123456789" text="123456789"
title="Copy commit SHA to clipboard" title="Copy commit SHA"
tooltipplacement="bottom" tooltipplacement="bottom"
/> />
</div> </div>
...@@ -193,7 +193,7 @@ exports[`Repository last commit component renders the signature HTML as returned ...@@ -193,7 +193,7 @@ exports[`Repository last commit component renders the signature HTML as returned
<clipboardbutton-stub <clipboardbutton-stub
cssclass="btn-default" cssclass="btn-default"
text="123456789" text="123456789"
title="Copy commit SHA to clipboard" title="Copy commit SHA"
tooltipplacement="bottom" tooltipplacement="bottom"
/> />
</div> </div>
......
...@@ -14,7 +14,7 @@ describe('modal copy button', () => { ...@@ -14,7 +14,7 @@ describe('modal copy button', () => {
wrapper = shallowMount(Component, { wrapper = shallowMount(Component, {
propsData: { propsData: {
text: 'copy me', text: 'copy me',
title: 'Copy this value into Clipboard!', title: 'Copy this value',
}, },
}); });
}); });
......
...@@ -166,7 +166,7 @@ describe ButtonHelper do ...@@ -166,7 +166,7 @@ describe ButtonHelper do
it 'shows copy to clipboard button with default configuration and no text set to copy' do it 'shows copy to clipboard button with default configuration and no text set to copy' do
expect(element.attr('class')).to eq('btn btn-clipboard btn-transparent') expect(element.attr('class')).to eq('btn btn-clipboard btn-transparent')
expect(element.attr('type')).to eq('button') expect(element.attr('type')).to eq('button')
expect(element.attr('aria-label')).to eq('Copy to clipboard') expect(element.attr('aria-label')).to eq('Copy')
expect(element.attr('data-toggle')).to eq('tooltip') expect(element.attr('data-toggle')).to eq('tooltip')
expect(element.attr('data-placement')).to eq('bottom') expect(element.attr('data-placement')).to eq('bottom')
expect(element.attr('data-container')).to eq('body') expect(element.attr('data-container')).to eq('body')
......
...@@ -101,7 +101,7 @@ describe('Blob viewer', () => { ...@@ -101,7 +101,7 @@ describe('Blob viewer', () => {
it('has tooltip when disabled', () => { it('has tooltip when disabled', () => {
expect(copyButton.getAttribute('data-original-title')).toBe( expect(copyButton.getAttribute('data-original-title')).toBe(
'Switch to the source to copy it to the clipboard', 'Switch to the source to copy the file contents',
); );
}); });
...@@ -136,7 +136,7 @@ describe('Blob viewer', () => { ...@@ -136,7 +136,7 @@ describe('Blob viewer', () => {
document.querySelector('.js-blob-viewer-switch-btn[data-viewer="simple"]').click(); document.querySelector('.js-blob-viewer-switch-btn[data-viewer="simple"]').click();
setTimeout(() => { setTimeout(() => {
expect(copyButton.getAttribute('data-original-title')).toBe('Copy source to clipboard'); expect(copyButton.getAttribute('data-original-title')).toBe('Copy file contents');
done(); done();
}); });
......
...@@ -14,7 +14,7 @@ describe('clipboard button', () => { ...@@ -14,7 +14,7 @@ describe('clipboard button', () => {
beforeEach(() => { beforeEach(() => {
vm = mountComponent(Component, { vm = mountComponent(Component, {
text: 'copy me', text: 'copy me',
title: 'Copy this value into Clipboard!', title: 'Copy this value',
cssClass: 'btn-danger', cssClass: 'btn-danger',
}); });
}); });
...@@ -26,7 +26,7 @@ describe('clipboard button', () => { ...@@ -26,7 +26,7 @@ describe('clipboard button', () => {
}); });
it('should have a tooltip with default values', () => { it('should have a tooltip with default values', () => {
expect(vm.$el.getAttribute('data-original-title')).toEqual('Copy this value into Clipboard!'); expect(vm.$el.getAttribute('data-original-title')).toEqual('Copy this value');
}); });
it('should render provided classname', () => { it('should render provided classname', () => {
...@@ -39,7 +39,7 @@ describe('clipboard button', () => { ...@@ -39,7 +39,7 @@ describe('clipboard button', () => {
vm = mountComponent(Component, { vm = mountComponent(Component, {
text: 'copy me', text: 'copy me',
gfm: '`path/to/file`', gfm: '`path/to/file`',
title: 'Copy this value into Clipboard!', title: 'Copy this value',
cssClass: 'btn-danger', cssClass: 'btn-danger',
}); });
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment