Skip to content

Commit

Permalink
🚚 Relocate class in SettingsApiView
Browse files Browse the repository at this point in the history
  • Loading branch information
ivov committed Sep 8, 2022
1 parent 67e49d5 commit c5ae9c4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/editor-ui/src/components/CopyInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div>
<n8n-input-label :label="label">
<div :class="{[$style.copyText]: true, [$style[size]]: true, [$style.collapsed]: collapse}" @click="copy">
<span ref="copyInputValue ph-no-capture">{{ value }}</span>
<span ref="copyInputValue">{{ value }}</span>
<div :class="$style.copyButton"><span>{{ copyButtonText }}</span></div>
</div>
</n8n-input-label>
Expand Down
16 changes: 9 additions & 7 deletions packages/editor-ui/src/views/SettingsApiView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,15 @@
{{ $locale.baseText('generic.delete') }}
</n8n-link>
</span>
<CopyInput
:label="$locale.baseText('settings.api.view.myKey')"
:value="apiKey"
:copy-button-text="$locale.baseText('generic.clickToCopy')"
:toast-title="$locale.baseText('settings.api.view.copy.toast')"
@copy="onCopy"
/>
<div class="ph-no-capture">
<CopyInput
:label="$locale.baseText('settings.api.view.myKey')"
:value="apiKey"
:copy-button-text="$locale.baseText('generic.clickToCopy')"
:toast-title="$locale.baseText('settings.api.view.copy.toast')"
@copy="onCopy"
/>
</div>
</n8n-card>
<div :class="$style.hint">
<n8n-text size="small">
Expand Down

0 comments on commit c5ae9c4

Please sign in to comment.