Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/minor doc fixes #863

Merged
merged 6 commits into from
Sep 8, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,10 @@ <h3 class="md-title">Dynamic Boolean Elements</h3>
<md-tab-group md-stretch-tabs dynamicHeight>
<md-tab>
<ng-template mdTabLabel>Demo</ng-template>
<td-dynamic-forms [elements]="booleanElements">
</td-dynamic-forms>
<div class="pad-sm">
<td-dynamic-forms [elements]="booleanElements">
</td-dynamic-forms>
</div>
</md-tab>
<md-tab>
<ng-template mdTabLabel>Code</ng-template>
Expand Down
4 changes: 2 additions & 2 deletions src/app/components/components/paging/paging.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@
</md-card-content>
<md-divider></md-divider>
<td-paging-bar #pagingBarResponsive
[pageLinkCount]="(media.registerQuery('md') | async) ? 0 : 5"
[pageLinkCount]="(media.registerQuery('sm') | async) ? 0 : 3"
[firstLast]="media.registerQuery('gt-xs') | async"
[pageSize]="pageSizeResponsive"
[total]="1345"
Expand All @@ -278,7 +278,7 @@
</md-option>
</md-select>
<p hide-xs hide-sm hide-md>Go to:</p>
<md-form-field [style.width.px]="30" *ngIf="media.registerQuery('gt-sm') | async">
<md-form-field [style.width.px]="30" *ngIf="media.registerQuery('gt-xs') | async">
<input #goToResponsive
mdInput
type="number"
Expand Down
10 changes: 5 additions & 5 deletions src/app/components/design-patterns/alerts/alerts.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -95,16 +95,16 @@ <h3>Solution</h3>
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
Expand Down Expand Up @@ -168,7 +168,7 @@ <h3>Solution</h3>
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 });
}
}
]]>
Expand Down
10 changes: 5 additions & 5 deletions src/app/components/design-patterns/alerts/alerts.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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({
Expand Down