Skip to content

Commit 18b79c2

Browse files
trueberrylessCodeRabbit
andcommitted
fix: suggestions
Co-authored-by: CodeRabbit <132028505+coderabbitai@users.noreply.github.com>
1 parent 3eff748 commit 18b79c2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/app/components/BadgeGenerator.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const types = [
3131
'name',
3232
]
3333
34-
watch(pkg, () => {
34+
watch([pkg, type], () => {
3535
isValid.value = true
3636
})
3737
@@ -110,7 +110,7 @@ const copyToClipboard = async () => {
110110

111111
<button
112112
@click="copyToClipboard"
113-
:disabled="!isValid"
113+
:disabled="!isValid || !pkg"
114114
class="px-4 h-full text-[11px] font-bold uppercase tracking-widest transition-all disabled:opacity-20 disabled:cursor-not-allowed min-w-21.25 hover:bg-gray-50 dark:hover:bg-white/5"
115115
:class="
116116
copied

docs/app/components/BadgeGeneratorParameters.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ const copyToClipboard = async () => {
153153
</div>
154154
<button
155155
@click="copyToClipboard"
156-
:disabled="!isValid || !isInputValid"
156+
:disabled="!isValid || !isInputValid || !pkg"
157157
class="px-6 h-full text-[11px] font-bold uppercase tracking-widest transition-all disabled:opacity-20 disabled:cursor-not-allowed min-w-24 hover:bg-gray-50 dark:hover:bg-white/5"
158158
:class="
159159
copied

0 commit comments

Comments
 (0)