chore(alert): remove alert label feature

This commit is contained in:
Adam Bradley
2015-12-30 21:20:50 -06:00
parent 0a9700c00a
commit 1d5d0d6517
3 changed files with 1 additions and 4 deletions

View File

@@ -24,7 +24,7 @@ $alert-ios-body-text-align: center !default;
$alert-ios-body-font-size: 13px !default;
$alert-ios-input-padding: 6px !default;
$alert-ios-input-margin-top: 24px !default;
$alert-ios-input-margin-top: 10px !default;
$alert-ios-input-background-color: #fff !default;
$alert-ios-input-border: 1px solid #ccc !default;
$alert-ios-input-border-radius: 4px !default;

View File

@@ -62,7 +62,6 @@ export class Alert extends ViewController {
'<div class="alert-body" *ngIf="d.body">{{d.body}}</div>' +
'<div class="alert-body alert-inputs" *ngIf="d.inputs.length">' +
'<div class="alert-input-wrapper" *ngFor="#i of d.inputs">' +
'<div class="alert-input-label" *ngIf="i.label">{{i.label}}</div>' +
'<input [placeholder]="i.placeholder" [(ngModel)]="i.value" [type]="i.type" class="alert-input">' +
'</div>' +
'</div>' +
@@ -132,7 +131,6 @@ class AlertCmp {
this.d.inputs = this.d.inputs.map((input, index) => {
return {
name: isDefined(input.name) ? input.name : index,
label: input.label,
placeholder: isDefined(input.placeholder) ? input.placeholder : '',
type: input.type || 'text',
value: isDefined(input.value) ? input.value : ''

View File

@@ -59,7 +59,6 @@ class E2EPage {
alert.addInput({
name: 'name2',
value: 'hello',
label: 'Input Label 2',
placeholder: 'Placeholder 2'
});
alert.addButton({