diff --git a/src/app/components/components/dynamic-forms/dynamic-forms.component.html b/src/app/components/components/dynamic-forms/dynamic-forms.component.html
index a1450f6ce4..a19a332e31 100644
--- a/src/app/components/components/dynamic-forms/dynamic-forms.component.html
+++ b/src/app/components/components/dynamic-forms/dynamic-forms.component.html
@@ -230,8 +230,10 @@
Dynamic Boolean Elements
Demo
-
-
+
+
+
+
Code
diff --git a/src/app/components/components/paging/paging.component.html b/src/app/components/components/paging/paging.component.html
index a29cf44eca..663cc17ec6 100644
--- a/src/app/components/components/paging/paging.component.html
+++ b/src/app/components/components/paging/paging.component.html
@@ -266,7 +266,7 @@
Go to:
-
+
Solution
openAlert(): void {
this._dialogService.openAlert({
message: 'You don\'t have the required permissions to view this item! Contact an administrator!',
- title: '401 Permissions Error!',
- closeButton: 'Dismiss',
+ title: '401 Permissions Error',
+ closeButton: 'Ok',
});
}
openConfirm(): void {
this._dialogService.openConfirm({
message: 'Are you sure you want to delete this item? It\'s used on other items.',
title: 'Confirm',
- cancelButton: 'No, Cancel',
- acceptButton: 'Yes, Delete',
+ cancelButton: 'Cancel',
+ acceptButton: 'Delete',
}).afterClosed().subscribe((accept: boolean) => {
if (accept) {
// DO SOMETHING
@@ -168,7 +168,7 @@ Solution
constructor(private _snackBarService: MdSnackBar) {
}
showSnackBar(): void {
- this._snackBarService.open('Toast here!', 'Dismiss', { duration: 3000 });
+ this._snackBarService.open('Connection timed out. Showing limited messages.', 'Retry', { duration: 3000 });
}
}
]]>
diff --git a/src/app/components/design-patterns/alerts/alerts.component.ts b/src/app/components/design-patterns/alerts/alerts.component.ts
index c111a23b6d..5d7292e0b1 100644
--- a/src/app/components/design-patterns/alerts/alerts.component.ts
+++ b/src/app/components/design-patterns/alerts/alerts.component.ts
@@ -32,22 +32,22 @@ export class AlertsComponent {
showSnackBar(): void {
this._snackBarService
- .open('Toast here', 'Dismiss', { duration: 3000 });
+ .open('Connection timed out. Showing limited messages.', 'Retry', { duration: 3000 });
}
openAlert(): void {
this._dialogService.openAlert({
message: 'You don\'t have the required permissions to view this item! Contact an administrator!',
disableClose: true,
title: '401 Permissions Error!',
- closeButton: 'Dismiss',
+ closeButton: 'Ok',
});
}
openConfirm(): void {
this._dialogService.openConfirm({
message: 'Are you sure you want to delete this item? It\'s used on other items.',
title: 'Confirm',
- cancelButton: 'No, Cancel',
- acceptButton: 'Yes, Delete',
+ cancelButton: 'Cancel',
+ acceptButton: 'Delete',
}).afterClosed().subscribe((accept: boolean) => {
if (accept) {
this.confirmDelete();
@@ -57,7 +57,7 @@ export class AlertsComponent {
});
}
confirmDelete(): void {
- this._snackBarService.open('Item deleted!', 'Ok', { duration: 3000 });
+ this._snackBarService.open('Item deleted', '', { duration: 3000 });
}
openPrompt(): void {
this._dialogService.openPrompt({