Skip to content

Commit

Permalink
components(copy-icon-button): rename to copy-button
Browse files Browse the repository at this point in the history
  • Loading branch information
ozgurg committed Mar 30, 2024
1 parent 835e28c commit 899eb09
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion components/Calculator/CalculatorResultFormRow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<v-divider
class="my-2 me-3"
vertical="" />
<copy-icon-button :value-to-copy="value" />
<copy-button :value-to-copy="value" />
</template>
</v-text-field>
</form-row>
Expand Down
2 changes: 1 addition & 1 deletion components/Calculator/CalculatorShareDialogUrl.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
<v-divider
class="my-2 me-3"
vertical="" />
<lazy-copy-icon-button
<lazy-copy-button
:value-to-copy="url"
container-selector="#calculatorShareDialogCopyUrlContainer" />
</template>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ export default {
_copyValue() {
const vm = this;
// DO NOT pass "null" as the default value.
// When "null" is used instead of "false", "$copyText" doesn't behave as expected.
// DO NOT pass `null` as the default value.
// When `null` is used instead of `false`, `$copyText` doesn't behave as expected.
const container = vm.containerSelector ? document.querySelector(vm.containerSelector) : false;
vm.$copyText(vm.valueToCopy, container);
},
Expand Down

0 comments on commit 899eb09

Please sign in to comment.