Removes btn-transparent and btn-clipboard as default classes for clipboard button component
Changes after review
This commit is contained in:
parent
35f6efaee0
commit
51b8874148
|
@ -186,7 +186,7 @@
|
||||||
<clipboard-button
|
<clipboard-button
|
||||||
:text="ingressExternalIp"
|
:text="ingressExternalIp"
|
||||||
:title="s__('ClusterIntegration|Copy Ingress IP Address to clipboard')"
|
:title="s__('ClusterIntegration|Copy Ingress IP Address to clipboard')"
|
||||||
css-class="btn btn-default js-clipboard-btn"
|
class="js-clipboard-btn"
|
||||||
/>
|
/>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -35,6 +35,7 @@
|
||||||
<clipboard-button
|
<clipboard-button
|
||||||
title="Copy file path to clipboard"
|
title="Copy file path to clipboard"
|
||||||
:text="diffFile.submoduleLink"
|
:text="diffFile.submoduleLink"
|
||||||
|
css-class="btn-default btn-transparent btn-clipboard"
|
||||||
/>
|
/>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -79,6 +80,7 @@
|
||||||
<clipboard-button
|
<clipboard-button
|
||||||
title="Copy file path to clipboard"
|
title="Copy file path to clipboard"
|
||||||
:text="diffFile.filePath"
|
:text="diffFile.filePath"
|
||||||
|
css-class="btn-default btn-transparent btn-clipboard"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<small
|
<small
|
||||||
|
|
|
@ -86,6 +86,7 @@
|
||||||
v-if="repo.location"
|
v-if="repo.location"
|
||||||
:text="clipboardText"
|
:text="clipboardText"
|
||||||
:title="repo.location"
|
:title="repo.location"
|
||||||
|
css-class="btn-default btn-transparent btn-clipboard"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<div class="controls hidden-xs pull-right">
|
<div class="controls hidden-xs pull-right">
|
||||||
|
|
|
@ -90,6 +90,7 @@
|
||||||
v-if="item.location"
|
v-if="item.location"
|
||||||
:title="item.location"
|
:title="item.location"
|
||||||
:text="clipboardText(item.location)"
|
:text="clipboardText(item.location)"
|
||||||
|
css-class="btn-default btn-transparent btn-clipboard"
|
||||||
/>
|
/>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
|
|
|
@ -67,6 +67,7 @@
|
||||||
<clipboard-button
|
<clipboard-button
|
||||||
:text="branchNameClipboardData"
|
:text="branchNameClipboardData"
|
||||||
:title="__('Copy branch name to clipboard')"
|
:title="__('Copy branch name to clipboard')"
|
||||||
|
css-class="btn-default btn-transparent btn-clipboard"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{{ s__("mrWidget|into") }}
|
{{ s__("mrWidget|into") }}
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
cssClass: {
|
cssClass: {
|
||||||
type: String,
|
type: String,
|
||||||
required: false,
|
required: false,
|
||||||
default: 'btn btn-default btn-transparent btn-clipboard',
|
default: 'btn-default',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -40,6 +40,7 @@
|
||||||
<template>
|
<template>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
|
class="btn"
|
||||||
:class="cssClass"
|
:class="cssClass"
|
||||||
:title="title"
|
:title="title"
|
||||||
:data-clipboard-text="text"
|
:data-clipboard-text="text"
|
||||||
|
|
|
@ -10,6 +10,7 @@ describe('clipboard button', () => {
|
||||||
vm = mountComponent(Component, {
|
vm = mountComponent(Component, {
|
||||||
text: 'copy me',
|
text: 'copy me',
|
||||||
title: 'Copy this value into Clipboard!',
|
title: 'Copy this value into Clipboard!',
|
||||||
|
cssClass: 'btn-danger',
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -28,4 +29,8 @@ describe('clipboard button', () => {
|
||||||
expect(vm.$el.getAttribute('data-placement')).toEqual('top');
|
expect(vm.$el.getAttribute('data-placement')).toEqual('top');
|
||||||
expect(vm.$el.getAttribute('data-container')).toEqual(null);
|
expect(vm.$el.getAttribute('data-container')).toEqual(null);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('should render provided classname', () => {
|
||||||
|
expect(vm.$el.classList).toContain('btn-danger');
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue