-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mgr/dashboard: Use ng-bootstrap for Alert
Fixes: https://tracker.ceph.com/issues/45751 Signed-off-by: Tiago Melo <tmelo@suse.com>
- Loading branch information
Tiago Melo
committed
May 28, 2020
1 parent
07f9d8b
commit 8f56fae
Showing
17 changed files
with
39 additions
and
52 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
...r/dashboard/frontend/src/app/shared/components/loading-panel/loading-panel.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
<alert type="info"> | ||
<ngb-alert type="info" | ||
[dismissible]="false"> | ||
<strong> | ||
<i [ngClass]="[icons.spinner, icons.spin]" | ||
aria-hidden="true" | ||
class="mr-2"></i> | ||
</strong> | ||
<ng-content></ng-content> | ||
</alert> | ||
</ngb-alert> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 7 additions & 8 deletions
15
.../shared/components/pwd-expiration-notification/pwd-expiration-notification.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
<alert class="no-margin-bottom" | ||
type="{{ alertType }}" | ||
*ngIf="expirationDays != null && expirationDays <= pwdExpirationSettings.pwdExpirationWarning1" | ||
[dismissible]="true" | ||
(onClose)="close($event)"> | ||
<ngb-alert class="no-margin-bottom" | ||
type="{{ alertType }}" | ||
*ngIf="expirationDays != null && expirationDays <= pwdExpirationSettings.pwdExpirationWarning1" | ||
(close)="close($event)"> | ||
<div *ngIf="expirationDays === 0" | ||
i18n>Your password will expire in <strong>less than 1</strong> day. Click | ||
<a routerLink="/user-profile/edit" | ||
class="alert-link">here</a> to change it now.</div> | ||
<a routerLink="/user-profile/edit" | ||
class="alert-link">here</a> to change it now.</div> | ||
<div *ngIf="expirationDays > 0" | ||
i18n>Your password will expire in <strong>{{ expirationDays }}</strong> day(s). Click | ||
<a routerLink="/user-profile/edit" | ||
class="alert-link">here</a> to change it now.</div> | ||
</alert> | ||
</ngb-alert> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters