Commit e27e1cea authored by Pedro Moreira da Silva's avatar Pedro Moreira da Silva Committed by Phil Hughes

Change copy to clipboard icon

parent c9097f27
...@@ -121,7 +121,7 @@ export default { ...@@ -121,7 +121,7 @@ export default {
:title="title" :title="title"
> >
<slot> <slot>
<icon name="duplicate" /> <icon name="copy-to-clipboard" />
</slot> </slot>
</gl-button> </gl-button>
</template> </template>
...@@ -53,7 +53,7 @@ module ButtonHelper ...@@ -53,7 +53,7 @@ module ButtonHelper
} }
content_tag :button, button_attributes do content_tag :button, button_attributes do
concat(sprite_icon('duplicate')) unless hide_button_icon concat(sprite_icon('copy-to-clipboard')) unless hide_button_icon
concat(button_text) concat(button_text)
end end
end end
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
.card-header .card-header
.float-right .float-right
%button.js-clipboard-trigger.btn.btn-sm{ title: t('sherlock.copy_to_clipboard'), type: :button } %button.js-clipboard-trigger.btn.btn-sm{ title: t('sherlock.copy_to_clipboard'), type: :button }
= sprite_icon('duplicate') = sprite_icon('copy-to-clipboard')
%pre.hidden %pre.hidden
= @query.formatted_query = @query.formatted_query
%strong %strong
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
.card-header .card-header
.float-right .float-right
%button.js-clipboard-trigger.btn.btn-sm{ title: t('sherlock.copy_to_clipboard'), type: :button } %button.js-clipboard-trigger.btn.btn-sm{ title: t('sherlock.copy_to_clipboard'), type: :button }
= sprite_icon('duplicate') = sprite_icon('copy-to-clipboard')
%pre.hidden %pre.hidden
= @query.explain = @query.explain
%strong %strong
......
---
title: Change vague copy to clipboard icon to a clearer icon.
merge_request: 23983
author:
type: changed
...@@ -173,7 +173,7 @@ describe ButtonHelper do ...@@ -173,7 +173,7 @@ describe ButtonHelper do
expect(element.attr('data-clipboard-text')).to eq(nil) expect(element.attr('data-clipboard-text')).to eq(nil)
expect(element.inner_text).to eq("") expect(element.inner_text).to eq("")
expect(element.to_html).to include sprite_icon('duplicate') expect(element.to_html).to include sprite_icon('copy-to-clipboard')
end end
end end
......
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