diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2018-02-19 17:03:41 +0300 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2018-02-19 17:05:09 +0300 |
commit | f0b27f9b406579a03e55fa16cbc7095009dc8c2b (patch) | |
tree | f4ca8bd423a68241f4ca2a80249947df5d3c6063 /app/assets/javascripts/vue_shared/components/clipboard_button.vue | |
parent | 9fc393c23dfa206802fdce162be1e06dca65ab54 (diff) |
Adds support to render the IP address in the application ingress row
Updates components to use a slot to allow to reuse the clipboard button
Adds tests
Diffstat (limited to 'app/assets/javascripts/vue_shared/components/clipboard_button.vue')
-rw-r--r-- | app/assets/javascripts/vue_shared/components/clipboard_button.vue | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/assets/javascripts/vue_shared/components/clipboard_button.vue b/app/assets/javascripts/vue_shared/components/clipboard_button.vue index 31d9b9d9c48..ca4ad8eea92 100644 --- a/app/assets/javascripts/vue_shared/components/clipboard_button.vue +++ b/app/assets/javascripts/vue_shared/components/clipboard_button.vue @@ -28,6 +28,11 @@ required: false, default: false, }, + cssClass: { + type: String, + required: false, + default: 'btn btn-default btn-transparent btn-clipboard', + }, }, }; </script> @@ -35,7 +40,7 @@ <template> <button type="button" - class="btn btn-transparent btn-clipboard" + :class="cssClass" :title="title" :data-clipboard-text="text" v-tooltip |