mirror of
https://github.com/bitwarden/browser
synced 2025-12-22 03:03:43 +00:00
[PM-1914] Migrate all dialogs to use the new bitDialogFooter default styling (#5256)
This commit is contained in:
@@ -49,7 +49,7 @@
|
||||
{{ "automaticDomainVerificationProcess" | i18n }}
|
||||
</bit-callout>
|
||||
</div>
|
||||
<div bitDialogFooter class="tw-flex tw-flex-row tw-items-center tw-gap-2">
|
||||
<ng-container bitDialogFooter>
|
||||
<button type="submit" bitButton bitFormButton buttonType="primary">
|
||||
<span *ngIf="!data?.orgDomain?.verifiedDate">{{ "verifyDomain" | i18n }}</span>
|
||||
<span *ngIf="data?.orgDomain?.verifiedDate">{{ "reverifyDomain" | i18n }}</span>
|
||||
@@ -70,6 +70,6 @@
|
||||
type="submit"
|
||||
bitFormButton
|
||||
></button>
|
||||
</div>
|
||||
</ng-container>
|
||||
</bit-dialog>
|
||||
</form>
|
||||
|
||||
@@ -23,13 +23,13 @@
|
||||
</bit-form-field>
|
||||
</div>
|
||||
|
||||
<div bitDialogFooter class="tw-flex tw-gap-2">
|
||||
<ng-container bitDialogFooter>
|
||||
<button type="submit" bitButton buttonType="danger" bitFormButton>
|
||||
{{ title | i18n }}
|
||||
</button>
|
||||
<button type="button" bitButton buttonType="secondary" bitFormButton bitDialogClose>
|
||||
{{ "cancel" | i18n }}
|
||||
</button>
|
||||
</div>
|
||||
</ng-container>
|
||||
</bit-dialog>
|
||||
</form>
|
||||
|
||||
@@ -10,13 +10,13 @@
|
||||
<input formControlName="name" maxlength="1000" bitInput />
|
||||
</bit-form-field>
|
||||
</span>
|
||||
<div bitDialogFooter class="tw-flex tw-gap-2">
|
||||
<ng-container bitDialogFooter>
|
||||
<button type="submit" bitButton buttonType="primary" bitFormButton>
|
||||
{{ "save" | i18n }}
|
||||
</button>
|
||||
<button type="button" bitButton buttonType="secondary" bitFormButton bitDialogClose>
|
||||
{{ "cancel" | i18n }}
|
||||
</button>
|
||||
</div>
|
||||
</ng-container>
|
||||
</bit-dialog>
|
||||
</form>
|
||||
|
||||
@@ -6,12 +6,12 @@
|
||||
</div>
|
||||
{{ "deleteItemConfirmation" | i18n }}
|
||||
</span>
|
||||
<div bitDialogFooter class="tw-flex tw-gap-2">
|
||||
<ng-container bitDialogFooter>
|
||||
<button type="button" bitButton buttonType="primary" [bitAction]="delete">
|
||||
{{ submitButtonText | i18n }}
|
||||
</button>
|
||||
<button type="button" bitButton buttonType="secondary" bitDialogClose>
|
||||
{{ "close" | i18n }}
|
||||
</button>
|
||||
</div>
|
||||
</ng-container>
|
||||
</bit-simple-dialog>
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
<input formControlName="newProjectName" maxlength="1000" bitInput />
|
||||
</bit-form-field>
|
||||
</div>
|
||||
<div bitDialogFooter class="tw-flex tw-gap-2">
|
||||
<ng-container bitDialogFooter>
|
||||
<button type="submit" bitButton buttonType="primary" bitFormButton>
|
||||
{{ "save" | i18n }}
|
||||
</button>
|
||||
@@ -67,6 +67,6 @@
|
||||
bitFormButton
|
||||
(click)="openDeleteSecretDialog()"
|
||||
></button>
|
||||
</div>
|
||||
</ng-container>
|
||||
</bit-dialog>
|
||||
</form>
|
||||
|
||||
@@ -32,13 +32,13 @@
|
||||
></sm-expiration-options>
|
||||
</div>
|
||||
|
||||
<div bitDialogFooter class="tw-flex tw-gap-2">
|
||||
<ng-container bitDialogFooter>
|
||||
<button class="tw-normal-case" type="submit" bitButton buttonType="primary" bitFormButton>
|
||||
{{ "newAccessToken" | i18n }}
|
||||
</button>
|
||||
<button type="button" bitButton buttonType="secondary" bitFormButton bitDialogClose>
|
||||
{{ "cancel" | i18n }}
|
||||
</button>
|
||||
</div>
|
||||
</ng-container>
|
||||
</bit-dialog>
|
||||
</form>
|
||||
|
||||
@@ -23,10 +23,10 @@
|
||||
{{ data.expirationDate === null ? ("never" | i18n) : (data.expirationDate | date : "medium") }}
|
||||
</div>
|
||||
|
||||
<div bitDialogFooter class="tw-flex tw-gap-2">
|
||||
<ng-container bitDialogFooter>
|
||||
<button type="button" bitButton buttonType="primary" (click)="copyAccessToken()">
|
||||
<i class="bwi bwi-clone" aria-hidden="true"></i>
|
||||
{{ "copyToken" | i18n }}
|
||||
</button>
|
||||
</div>
|
||||
</ng-container>
|
||||
</bit-dialog>
|
||||
|
||||
@@ -23,13 +23,13 @@
|
||||
</bit-form-field>
|
||||
</div>
|
||||
|
||||
<div bitDialogFooter class="tw-flex tw-gap-2">
|
||||
<ng-container bitDialogFooter>
|
||||
<button type="submit" bitButton buttonType="danger" bitFormButton>
|
||||
{{ title }}
|
||||
</button>
|
||||
<button type="button" bitButton buttonType="secondary" bitFormButton bitDialogClose>
|
||||
{{ "cancel" | i18n }}
|
||||
</button>
|
||||
</div>
|
||||
</ng-container>
|
||||
</bit-dialog>
|
||||
</form>
|
||||
|
||||
@@ -12,13 +12,13 @@
|
||||
</bit-form-field>
|
||||
</div>
|
||||
</div>
|
||||
<div bitDialogFooter class="tw-flex tw-gap-2">
|
||||
<ng-container bitDialogFooter>
|
||||
<button type="submit" bitButton buttonType="primary" bitFormButton>
|
||||
{{ "save" | i18n }}
|
||||
</button>
|
||||
<button type="button" bitButton buttonType="secondary" bitFormButton bitDialogClose>
|
||||
{{ "cancel" | i18n }}
|
||||
</button>
|
||||
</div>
|
||||
</ng-container>
|
||||
</bit-dialog>
|
||||
</form>
|
||||
|
||||
@@ -21,9 +21,9 @@
|
||||
</ng-template>
|
||||
</bit-table>
|
||||
</span>
|
||||
<div bitDialogFooter>
|
||||
<ng-container bitDialogFooter>
|
||||
<button bitButton bitDialogClose buttonType="primary" type="button">
|
||||
{{ "ok" | i18n }}
|
||||
</button>
|
||||
</div>
|
||||
</ng-container>
|
||||
</bit-dialog>
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
<span bitDialogContent>
|
||||
{{ data.message | i18n }}
|
||||
</span>
|
||||
<div bitDialogFooter class="tw-flex tw-flex-row tw-gap-2">
|
||||
<ng-container bitDialogFooter>
|
||||
<button type="button" bitButton buttonType="danger" [bitAction]="removeAccess">
|
||||
{{ "removeAccess" | i18n }}
|
||||
</button>
|
||||
<button type="button" bitButton buttonType="secondary" [bitAction]="cancel">
|
||||
{{ "cancel" | i18n }}
|
||||
</button>
|
||||
</div>
|
||||
</ng-container>
|
||||
</bit-simple-dialog>
|
||||
|
||||
@@ -25,9 +25,9 @@
|
||||
</bit-table>
|
||||
</div>
|
||||
|
||||
<div bitDialogFooter class="tw-flex tw-gap-2">
|
||||
<ng-container bitDialogFooter>
|
||||
<button bitButton buttonType="primary" bitDialogClose type="button">
|
||||
{{ "close" | i18n }}
|
||||
</button>
|
||||
</div>
|
||||
</ng-container>
|
||||
</bit-dialog>
|
||||
|
||||
@@ -7,12 +7,12 @@
|
||||
: ("hardDeleteSecretsConfirmation" | i18n)
|
||||
}}
|
||||
</span>
|
||||
<div bitDialogFooter class="tw-flex tw-gap-2">
|
||||
<ng-container bitDialogFooter>
|
||||
<button type="button" bitButton buttonType="primary" [bitAction]="delete">
|
||||
{{ submitButtonText | i18n }}
|
||||
</button>
|
||||
<button type="button" bitButton buttonType="secondary" bitDialogClose>
|
||||
{{ "close" | i18n }}
|
||||
</button>
|
||||
</div>
|
||||
</ng-container>
|
||||
</bit-simple-dialog>
|
||||
|
||||
@@ -5,12 +5,12 @@
|
||||
data.secretIds.length === 1 ? ("restoreSecretPrompt" | i18n) : ("restoreSecretsPrompt" | i18n)
|
||||
}}
|
||||
</span>
|
||||
<div bitDialogFooter class="tw-flex tw-gap-2">
|
||||
<ng-container bitDialogFooter>
|
||||
<button type="button" bitButton buttonType="primary" [bitAction]="restore">
|
||||
{{ title | i18n }}
|
||||
</button>
|
||||
<button type="button" bitButton buttonType="secondary" bitDialogClose>
|
||||
{{ "close" | i18n }}
|
||||
</button>
|
||||
</div>
|
||||
</ng-container>
|
||||
</bit-simple-dialog>
|
||||
|
||||
Reference in New Issue
Block a user