Skip to content

Commit 5a01b00

Browse files
enriquezrenedaros10
authored andcommitted
#78 fix lint suggestions
1 parent 15617dd commit 5a01b00

18 files changed

+26
-100
lines changed

src/app/app.module.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ import { environment } from '../environments/environment';
4040
import { CustomerComponent } from './modules/customer/pages/customer.component';
4141
import { CustomerTableListComponent } from './modules/customer/components/customer-table-list/customer-table-list.component';
4242
import { SearchComponent } from './modules/customer/components/search/search.component';
43-
import { ManagmentCustomerProjectsComponent } from './modules/customer/components/managment-customer-projects/managment-customer-projects.component';
43+
// tslint:disable-next-line:import-spacing
44+
import { ManagmentCustomerProjectsComponent }
45+
from './modules/customer/components/managment-customer-projects/managment-customer-projects.component';
4446
import { InputCustomerComponent } from './modules/customer/components/input-customer/input-customer';
4547
import { InputProjectComponent } from './modules/customer/components/input-project/input-project.component';
4648
import { ProjectTableListComponent } from './modules/customer/components/project-table-list/project-table-list.component';

src/app/modules/customer/components/customer-table-list/customer-table-list.component.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
<tbody>
99
<tr
1010
class="d-flex"
11-
*ngFor="let customer of customers | paginate: { itemsPerPage: 3, currentPage: initPage1, id: 'first' }"
11+
*ngFor="let customer of customers | paginate: { itemsPerPage: 5, currentPage: initPage1, id: 'first' }"
1212
>
1313
<td class="col-sm-9">{{ customer.name }}</td>
1414
<td class="col-sm-3 text-center">
15-
<button (click)="activateCustomerForm()" type="button" class="btn btn-sm btn-edit">
15+
<button (click)="activateCustomerForm()" type="button" class="btn btn-sm btn-secondary">
1616
<i class="fa fa-pencil fa-xs"></i>
1717
</button>
18-
<button type="button" class="btn btn-sm btn-delete ml-2"><i class="fas fa-trash-alt fa-xs"></i></button>
18+
<button type="button" class="btn btn-sm btn-danger ml-2"><i class="fas fa-trash-alt fa-xs"></i></button>
1919
</td>
2020
</tr>
2121
</tbody>

src/app/modules/customer/components/customer-table-list/customer-table-list.component.scss

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,6 @@
55
color: white;
66
}
77

8-
.btn-edit {
9-
background-color: $modal-button-secondary;
10-
color: white;
11-
}
12-
13-
.btn-delete {
14-
background-color: $danger-color;
15-
color: white;
16-
}
178

189
.scroll {
1910
max-height: 165px;

src/app/modules/customer/components/customer-table-list/customer-table-list.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
66
styleUrls: ['./customer-table-list.component.scss'],
77
})
88
export class CustomerTableListComponent implements OnInit {
9-
initPage1: number = 1;
9+
initPage1 = 1;
1010

1111
customers = [
1212
{

src/app/modules/customer/components/input-customer/input-customer.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
rows="3"
99
placeholder="Customer description"
1010
></textarea>
11-
<button type="submit" class="btn btn-sm btn-save mb-2 mt-2">Save</button>
12-
<button type="submit" class="btn btn-sm btn-cancel mb-2 ml-2 mt-2">Cancel</button>
11+
<button type="submit" class="btn btn-sm btn-primary">Save</button>
12+
<button type="submit" class="btn btn-sm btn-secondary mb-2 ml-2 mt-2">Cancel</button>
1313
</div>
1414
</form>
1515
</div>
Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +0,0 @@
1-
@import '../../../../../styles/colors.scss';
2-
3-
.btn-cancel {
4-
background-color: $modal-button-secondary;
5-
color: white;
6-
}
7-
8-
.btn-save {
9-
background-color: $danger-color;
10-
color: white;
11-
}

src/app/modules/customer/components/input-project-type/input-project-type.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
rows="3"
99
placeholder="Description"
1010
></textarea>
11-
<button type="submit" class="btn btn-sm btn-save mb-2 mt-2">Save</button>
12-
<button type="submit" class="btn btn-sm btn-cancel mb-2 ml-2 mt-2">Cancel</button>
11+
<button type="submit" class="btn btn-sm btn-primary mb-2 mt-2">Save</button>
12+
<button type="submit" class="btn btn-sm btn-secondary mb-2 ml-2 mt-2">Cancel</button>
1313
</div>
1414
</form>
1515
<hr />
Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +0,0 @@
1-
@import '../../../../../styles/colors.scss';
2-
3-
.btn-cancel {
4-
background-color: $modal-button-secondary;
5-
color: white;
6-
}
7-
8-
.btn-save {
9-
background-color: $danger-color;
10-
color: white;
11-
}

src/app/modules/customer/components/input-project/input-project.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
<option value="1">a..</option>
1414
<option value="2">b..</option>
1515
</select>
16-
<button type="submit" class="btn btn-sm btn-save mb-2 mt-2">Save</button>
17-
<button type="submit" class="btn btn-sm btn-cancel mb-2 ml-2 mt-2">Cancel</button>
16+
<button type="submit" class="btn btn-sm btn-primary">Save</button>
17+
<button type="submit" class="btn btn-sm btn-secondary mb-2 ml-2 mt-2">Cancel</button>
1818
</div>
1919
</form>
2020
<hr />
Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +0,0 @@
1-
@import '../../../../../styles/colors.scss';
2-
3-
.btn-cancel {
4-
background-color: $modal-button-secondary;
5-
color: white;
6-
}
7-
8-
.btn-save {
9-
background-color: $danger-color;
10-
color: white;
11-
}

0 commit comments

Comments
 (0)