SM-591: Update dropdown if is secrets list for trash (#4903)
This commit is contained in:
parent
65bedf8d26
commit
bb9def116a
|
@ -97,11 +97,21 @@
|
|||
<i class="bwi bwi-fw bwi-pencil" aria-hidden="true"></i>
|
||||
{{ "editSecret" | i18n }}
|
||||
</button>
|
||||
<button type="button" bitMenuItem (click)="copySecretNameEvent.emit(secret.name)">
|
||||
<button
|
||||
type="button"
|
||||
bitMenuItem
|
||||
(click)="copySecretNameEvent.emit(secret.name)"
|
||||
*ngIf="!trash"
|
||||
>
|
||||
<i class="bwi bwi-fw bwi-clone" aria-hidden="true"></i>
|
||||
{{ "copySecretName" | i18n }}
|
||||
</button>
|
||||
<button type="button" bitMenuItem (click)="copySecretValueEvent.emit(secret.id)">
|
||||
<button
|
||||
type="button"
|
||||
bitMenuItem
|
||||
(click)="copySecretValueEvent.emit(secret.id)"
|
||||
*ngIf="!trash"
|
||||
>
|
||||
<i class="bwi bwi-fw bwi-clone" aria-hidden="true"></i>
|
||||
{{ "copySecretValue" | i18n }}
|
||||
</button>
|
||||
|
@ -116,7 +126,9 @@
|
|||
</button>
|
||||
<button type="button" bitMenuItem (click)="deleteSecretsEvent.emit([secret.id])">
|
||||
<i class="bwi bwi-fw bwi-trash tw-text-danger" aria-hidden="true"></i>
|
||||
<span class="tw-text-danger">{{ "deleteSecret" | i18n }}</span>
|
||||
<span class="tw-text-danger">{{
|
||||
(trash ? "permanentlyDelete" : "deleteSecret") | i18n
|
||||
}}</span>
|
||||
</button>
|
||||
</bit-menu>
|
||||
</tr>
|
||||
|
|
Loading…
Reference in New Issue