File tree 1 file changed +10
-10
lines changed
1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change 70
70
/>
71
71
</v-card-text >
72
72
<v-card-text v-else >
73
- This is the only time your API key will be accessable . Please copy it to your clipboard now and store it
73
+ This is the only time your API key will be accessible . Please copy it to your clipboard now and store it
74
74
in a secure location. You'll need it to access the API and won't be able to retrieve it again later.
75
- <br />
76
- <div class =" d-flex justify-center" >
77
- <v-btn class =" mt-6" @click =" copyApiKey(newApiKeyToken, isActive)" prepend-icon =" mdi-content-copy"
78
- >Copy API key to clipboard</v-btn
79
- >
80
- </div >
75
+ <v-text-field
76
+ class =" mt-3"
77
+ v-model =" newApiKeyToken"
78
+ append-inner-icon =" mdi-content-copy"
79
+ @click =" copyApiKey(newApiKeyToken)"
80
+ hint =" Click the textfield to copy the key to your clipboard"
81
+ persistent-hint
82
+ ></v-text-field >
81
83
</v-card-text >
82
84
<v-card-actions v-if =" !newApiKeyToken" >
83
85
<v-spacer ></v-spacer >
@@ -170,14 +172,12 @@ export default {
170
172
})
171
173
.finally (() => {});
172
174
},
173
- copyApiKey(text , isActive ) {
175
+ copyApiKey(text ) {
174
176
navigator .clipboard .writeText (text );
175
177
this .$eventBus .emit (" displayMessage" , {
176
178
status: " info" ,
177
179
message: " API key copied to clipboard!"
178
180
});
179
- this .newApiKeyToken = null ;
180
- isActive .value = false ;
181
181
}
182
182
}
183
183
};
You can’t perform that action at this time.
0 commit comments