Commit da9d05f 1 parent c64b9a6 commit da9d05f Copy full SHA for da9d05f
File tree 2 files changed +7
-3
lines changed
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -72,12 +72,12 @@ async function fetchTokens(code: string) {
72
72
<div class =" form-item" >
73
73
<span class =" whitespace-nowrap" >Access Token</span >
74
74
<Skeleton v-if =" !accessToken" class =" w-full h-8 rounded-md" ></Skeleton >
75
- <PasswordInput v-else v-model =" accessToken" ></PasswordInput >
75
+ <PasswordInput v-else v-model =" accessToken" readonly ></PasswordInput >
76
76
</div >
77
77
<div class =" form-item" >
78
78
<span class =" whitespace-nowrap" >Refresh Token</span >
79
79
<Skeleton v-if =" !refreshToken" class =" w-full h-8 rounded-md" ></Skeleton >
80
- <PasswordInput v-else v-model =" refreshToken" ></PasswordInput >
80
+ <PasswordInput v-else v-model =" refreshToken" readonly ></PasswordInput >
81
81
</div >
82
82
</div >
83
83
</DialogContent >
Original file line number Diff line number Diff line change @@ -10,6 +10,10 @@ const value = defineModel<string>({ required: true })
10
10
const type = ref (' password' )
11
11
const { toast } = useToast ()
12
12
13
+ defineProps <{
14
+ readonly? : boolean
15
+ }>()
16
+
13
17
function switchType() {
14
18
type .value = type .value === ' password' ? ' text' : ' password'
15
19
}
@@ -29,7 +33,7 @@ async function copy() {
29
33
30
34
<template >
31
35
<div class =" relative w-full items-center" >
32
- <Input :type class =" pr-10 outline-none" v-model =" value" autocomplete =" off" readonly />
36
+ <Input :type class =" pr-10 outline-none" v-model =" value" autocomplete =" off" : readonly />
33
37
34
38
<div class =" absolute end-0 inset-y-0 flex items-center justify-center px-2" >
35
39
<Button @click =" switchType" size =" icon" variant =" ghost" >
You can’t perform that action at this time.
0 commit comments