SM-591: Update dropdown if is secrets list for trash (#4903)

This commit is contained in:
Colton Hurst 2023-03-02 17:27:48 -05:00 committed by GitHub
parent 65bedf8d26
commit bb9def116a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 3 deletions

View File

@ -97,11 +97,21 @@
<i class="bwi bwi-fw bwi-pencil" aria-hidden="true"></i> <i class="bwi bwi-fw bwi-pencil" aria-hidden="true"></i>
{{ "editSecret" | i18n }} {{ "editSecret" | i18n }}
</button> </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> <i class="bwi bwi-fw bwi-clone" aria-hidden="true"></i>
{{ "copySecretName" | i18n }} {{ "copySecretName" | i18n }}
</button> </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> <i class="bwi bwi-fw bwi-clone" aria-hidden="true"></i>
{{ "copySecretValue" | i18n }} {{ "copySecretValue" | i18n }}
</button> </button>
@ -116,7 +126,9 @@
</button> </button>
<button type="button" bitMenuItem (click)="deleteSecretsEvent.emit([secret.id])"> <button type="button" bitMenuItem (click)="deleteSecretsEvent.emit([secret.id])">
<i class="bwi bwi-fw bwi-trash tw-text-danger" aria-hidden="true"></i> <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> </button>
</bit-menu> </bit-menu>
</tr> </tr>