@@ -285,12 +285,12 @@ export class CcSshKeyList extends LitElement {
285
285
( key ) => key . name ,
286
286
( key ) => {
287
287
const name = key . name ;
288
- const isDisabled = ! skeleton && key . state !== 'idle' ;
288
+ const isWaiting = ! skeleton && key . state !== 'idle' ;
289
289
const classes = {
290
290
'key--personal' : type === 'personal' ,
291
291
'key--github' : type === 'github' ,
292
292
'key--skeleton' : skeleton ,
293
- 'is-disabled ' : isDisabled ,
293
+ 'is-waiting ' : isWaiting ,
294
294
} ;
295
295
296
296
return html `
@@ -311,10 +311,9 @@ export class CcSshKeyList extends LitElement {
311
311
a11y- name= "${ i18n ( 'cc-ssh-key-list.personal.delete.a11y' , { name } ) } "
312
312
class = "key__butto n key__butto n- - personal"
313
313
.icon = "${ iconBin } "
314
- ?dis abled= ${ isDisabled }
315
314
danger
316
315
outlined
317
- ?waiting= ${ isDisabled }
316
+ ?waiting= ${ isWaiting }
318
317
>
319
318
${ i18n ( 'cc-ssh-key-list.personal.delete' ) }
320
319
</ cc- butto n>
@@ -327,8 +326,7 @@ export class CcSshKeyList extends LitElement {
327
326
a11y- name= "${ i18n ( 'cc-ssh-key-list.github.import.a11y' , { name } ) } "
328
327
class = "key__butto n key__butto n- - github"
329
328
.icon = "${ iconAdd } "
330
- ?dis abled= ${ isDisabled }
331
- ?waiting= ${ isDisabled }
329
+ ?waiting= ${ isWaiting }
332
330
>
333
331
${ i18n ( 'cc-ssh-key-list.github.import' ) }
334
332
</ cc- butto n>
@@ -401,7 +399,7 @@ export class CcSshKeyList extends LitElement {
401
399
grid-template-columns : min-content 1fr ;
402
400
}
403
401
404
- .key .is-disabled {
402
+ .key .is-waiting {
405
403
cursor : default;
406
404
opacity : var (--cc-opacity-when-disabled );
407
405
}
0 commit comments