mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-05-05 13:57:10 -04:00
fix(copy): prevent shorthand copy if source is present in useCopy (#559)
* fix(copy): prevent shorthand copy if source is present in useCopy * refactor(copy): normalized copy usage
This commit is contained in:
parent
7b6232a151
commit
86e964a274
14 changed files with 26 additions and 20 deletions
|
@ -49,7 +49,7 @@ const { copy: copyArabic } = useCopy({ source: outputNumeral, text: 'Arabic numb
|
|||
<div class="result">
|
||||
{{ outputRoman }}
|
||||
</div>
|
||||
<c-button autofocus :disabled="validationNumeral.validationStatus === 'error'" @click="copyRoman">
|
||||
<c-button autofocus :disabled="validationNumeral.validationStatus === 'error'" @click="copyRoman()">
|
||||
Copy
|
||||
</c-button>
|
||||
</div>
|
||||
|
@ -61,7 +61,7 @@ const { copy: copyArabic } = useCopy({ source: outputNumeral, text: 'Arabic numb
|
|||
<div class="result">
|
||||
{{ outputNumeral }}
|
||||
</div>
|
||||
<c-button :disabled="!validationRoman.isValid" @click="copyArabic">
|
||||
<c-button :disabled="!validationRoman.isValid" @click="copyArabic()">
|
||||
Copy
|
||||
</c-button>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue