File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments