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>
|
<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>
|
||||||
|
|
Loading…
Reference in New Issue