mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 00:03:56 +00:00
* send work * Bump version to 2.16.2 (#668) * [SSO] New User Provision flow jslib update (f30d6f8->d84d6da) (#672) * Update jslib (f30d6f8->d84d6da) * Updated imports/constructor to super * OnlyOrg Policy (#669) * added localization strings needed for the OnlyOrg policy * added deprecation warning to policies page * allowed OnlyOrg policy configuration * blocked creating new orgs if already in an org with OnlyOrg enabled * code review cleanup for onlyOrg * removed a blank line * code review cleanup for onlyOrg * send listing actions * updates * access id * update jslib * re-work key and password derivation * update jslib * makeSendKey * update access path * store max access count * update jslib * l10n work * l10n for access page * l10n and cleanup * fix l10n Co-authored-by: Chad Scharf <3904944+cscharf@users.noreply.github.com> Co-authored-by: Vincent Salucci <26154748+vincentsalucci@users.noreply.github.com> Co-authored-by: Addison Beck <abeck@bitwarden.com>
60 lines
3.5 KiB
HTML
60 lines
3.5 KiB
HTML
<form #form (ngSubmit)="load()" [appApiAction]="formPromise" class="container" ngNativeValidate>
|
|
<div class="row justify-content-md-center mt-5">
|
|
<div class="col-5">
|
|
<p class="lead text-center mb-4">Bitwarden Send</p>
|
|
<div class="card d-block">
|
|
<div class="card-body" *ngIf="loading" class="text-center">
|
|
<i class="fa fa-spinner fa-spin fa-2x text-muted" title="{{'loading' | i18n}}"
|
|
aria-hidden="true"></i>
|
|
<span class="sr-only">{{'loading' | i18n}}</span>
|
|
</div>
|
|
<div class="card-body" *ngIf="!loading && passwordRequired">
|
|
<p>{{'sendProtectedPassword' | i18n}}</p>
|
|
<p>{{'sendProtectedPasswordDontKnow' | i18n}}</p>
|
|
<div class="form-group">
|
|
<label for="password">{{'password' | i18n}}</label>
|
|
<input id="password" type="password" name="Password" class="text-monospace form-control"
|
|
[(ngModel)]="password" required appInputVerbatim appAutofocus>
|
|
</div>
|
|
<div class="d-flex">
|
|
<button type="submit" class="btn btn-primary btn-block btn-submit" [disabled]="form.loading">
|
|
<span>
|
|
<i class="fa fa-sign-in" aria-hidden="true"></i> {{'continue' | i18n}}
|
|
</span>
|
|
<i class="fa fa-spinner fa-spin" title="{{'loading' | i18n}}" aria-hidden="true"></i>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
<div class="card-body" *ngIf="!loading && !passwordRequired && send">
|
|
<p class="text-center"><b>{{send.name}}</b></p>
|
|
<hr>
|
|
<!-- Text -->
|
|
<ng-container *ngIf="send.type === sendType.Text">
|
|
<app-callout *ngIf="send.text.hidden" type="tip">{{'sendHiddenByDefault' | i18n}}</app-callout>
|
|
<div class="form-group">
|
|
<textarea id="text" rows="8" name="Text" [(ngModel)]="sendText" class="form-control"
|
|
readonly (click)="selectText()"></textarea>
|
|
</div>
|
|
<button class="btn btn-block btn-link" type="button" (click)="toggleText()"
|
|
*ngIf="send.text.hidden">
|
|
<i class="fa fa-lg" aria-hidden="true"
|
|
[ngClass]="{'fa-eye': !showText, 'fa-eye-slash': showText}"></i>
|
|
{{'toggleVisibility' | i18n}}
|
|
</button>
|
|
<button class="btn btn-block btn-link" type="button" (click)="copyText()">
|
|
<i class="fa fa-copy" aria-hidden="true"></i> {{'copyValue' | i18n}}
|
|
</button>
|
|
</ng-container>
|
|
<!-- File -->
|
|
<ng-container *ngIf="send.type === sendType.File">
|
|
<p>{{send.file.fileName}}</p>
|
|
<button class="btn btn-primary btn-block" type="button" (click)="download()">
|
|
<i class="fa fa-download" aria-hidden="true"></i>
|
|
{{'downloadFile' | i18n}} ({{send.file.sizeName}})</button>
|
|
</ng-container>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|