Use ng2-materialize in account module.

This commit is contained in:
Alexis Lahouze 2017-08-27 20:02:08 +02:00
parent b5abe44bd9
commit 8fcbef9b5a
3 changed files with 7 additions and 5 deletions

View File

@ -9,6 +9,7 @@ import { RouterModule } from '@angular/router';
import { NgLoggerModule, Level } from '@nsalaun/ng-logger';
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
import { ToastrModule } from 'ngx-toastr';
import { MaterializeModule } from 'ng2-materialize';
import { AccountService } from './account.service';
import { AccountBalancesService } from './accountBalances.service';
@ -30,7 +31,8 @@ import { AccountListState } from './account.states'
]),
NgLoggerModule,
ToastrModule,
NgbModule
NgbModule,
MaterializeModule,
],
providers: [
AccountService,

View File

@ -30,7 +30,7 @@ import { AccountEditModalComponent } from './accountEditModal.component';
<tbody>
<tr>
<td colspan="5">
<button class="btn waves-effect green lighten-2" (click)="add()">
<button mz-button class="green" (click)="add()">
Ajouter
</button>
</td>

View File

@ -46,19 +46,19 @@ import { AccountEditModalComponent } from './accountEditModal.component';
<td>
<!-- Edit account. -->
<button type="button" class="btn-floating green lighten-2"
<button mz-button [float]="true" class="green"
(click)="modify()">
<span class="fa fa-pencil-square-o"></span>
</button>
<!-- Delete account, with confirm. -->
<button type="button" class="btn-floating red lighten-2"
<button mz-button [float]="true" class="red"
(click)="confirmDelete()">
<span class="fa fa-trash-o"></span>
</button>
<!-- Open account scheduler. -->
<button class="btn-floating"
<button mz-button [float]="true"
[hidden]="!account.id"
[routerLink]="['/account', account.id, 'scheduler']">
<span class="fa fa-clock-o"></span>