Skip to content

Commit

Permalink
fix(schematics): fix invalid msgSrv property in edit page (#225)
Browse files Browse the repository at this point in the history
  • Loading branch information
cipchk committed Oct 19, 2018
1 parent d75600e commit e3270e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
<sf *ngIf="i" #sf mode="edit" [schema]="schema" [ui]="ui" [formData]="i" button="none">
<div class="modal-footer">
<button nz-button type="button" (click)="close()">关闭</button>
<button nz-button type="submit" [nzType]="'primary'" (click)="save(sf.value)" [disabled]="!sf.valid" [nzLoading]="http.loading">保存</button>
<button nz-button type="submit" nzType="primary" (click)="save(sf.value)" [disabled]="!sf.valid" [nzLoading]="http.loading">保存</button>
</div>
</sf><% } else { %><page-header [title]="'编辑 ' + id + ' 信息'"></page-header>
<nz-card>
<nz-spin *ngIf="!i" class="modal-spin"></nz-spin>
<sf *ngIf="i" #sf mode="edit" [schema]="schema" [ui]="ui" [formData]="i" button="none">
<footer-toolbar errorCollect>
<button nz-button type="button" (click)="_location.back()" [nzLoading]="http.loading">返回</button>
<button nz-button type="submit" [nzType]="'primary'" (click)="save(sf.value)" [disabled]="!sf.valid" [nzLoading]="http.loading">保存</button>
<button nz-button type="button" (click)="location.back()" [nzLoading]="http.loading">返回</button>
<button nz-button type="submit" nzType="primary" (click)="save(sf.value)" [disabled]="!sf.valid" [nzLoading]="http.loading">保存</button>
</footer-toolbar>
</sf>
</nz-card><% } %>
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ export class <%= componentName %> implements OnInit {
constructor(<% if(modal) { %>
private modal: NzModalRef,<% } else { %>
private route: ActivatedRoute,
public location: Location,<% } %>
private msgSrv: NzMessageService,
public _location: Location,<% } %>
public http: _HttpClient,
) {}
Expand Down

0 comments on commit e3270e4

Please sign in to comment.