summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/vue_merge_request_widget
diff options
context:
space:
mode:
authorJose Ivan Vargas <jvargas@gitlab.com>2017-11-16 13:34:15 -0600
committerJose Ivan Vargas <jvargas@gitlab.com>2017-12-19 12:44:46 -0600
commita623ddb0dcdc42b0bd4f9d20c79e82387d9b5547 (patch)
tree6768bbb26c1d20c06ca88eab1b6c43ec98787f0b /app/assets/javascripts/vue_merge_request_widget
parentc034594f2c19461baf8034aeb52dbf17e694fc21 (diff)
downloadgitlab-ce-a623ddb0dcdc42b0bd4f9d20c79e82387d9b5547.tar.gz
replaced download icon for the sprite based one
Diffstat (limited to 'app/assets/javascripts/vue_merge_request_widget')
-rw-r--r--app/assets/javascripts/vue_merge_request_widget/components/mr_widget_header.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/app/assets/javascripts/vue_merge_request_widget/components/mr_widget_header.js b/app/assets/javascripts/vue_merge_request_widget/components/mr_widget_header.js
index 13e4cb5717e..1f8bd2646ea 100644
--- a/app/assets/javascripts/vue_merge_request_widget/components/mr_widget_header.js
+++ b/app/assets/javascripts/vue_merge_request_widget/components/mr_widget_header.js
@@ -1,5 +1,6 @@
import tooltip from '../../vue_shared/directives/tooltip';
import { pluralize } from '../../lib/utils/text_utility';
+import { spriteIcon } from '../../lib/utils/common_utils';
export default {
name: 'MRWidgetHeader',
@@ -25,6 +26,9 @@ export default {
gfm: `\`${this.mr.sourceBranch}\``,
});
},
+ downloadIcon() {
+ return spriteIcon('download');
+ },
},
methods: {
isBranchTitleLong(branchTitle) {
@@ -82,8 +86,7 @@ export default {
aria-label="Download as"
role="button">
<i
- class="fa fa-download"
- aria-hidden="true">
+ v-html="downloadIcon">
</i>
<i
class="fa fa-caret-down"