mirror of
https://github.com/bitwarden/web
synced 2026-01-04 09:33:32 +00:00
Allow organizational admins to assign clone ownership (#458)
This commit is contained in:
@@ -439,8 +439,7 @@
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<ng-container
|
||||
*ngIf="(!editMode || cloneMode) && !organization && ownershipOptions && ownershipOptions.length > 1">
|
||||
<ng-container *ngIf="allowOwnershipAssignment()">
|
||||
<h3 class="mt-4">{{'ownership' | i18n}}</h3>
|
||||
<div class="row">
|
||||
<div class="col-5">
|
||||
|
||||
@@ -154,6 +154,10 @@ export class AddEditComponent extends BaseAddEditComponent {
|
||||
}
|
||||
}
|
||||
|
||||
protected allowOwnershipAssignment() {
|
||||
return (!this.editMode || this.cloneMode) && this.ownershipOptions != null && this.ownershipOptions.length > 1;
|
||||
}
|
||||
|
||||
private async totpTick(intervalSeconds: number) {
|
||||
const epoch = Math.round(new Date().getTime() / 1000.0);
|
||||
const mod = epoch % intervalSeconds;
|
||||
|
||||
Reference in New Issue
Block a user