diff --git a/CHANGELOG.md b/CHANGELOG.md index 7e6321b..7c16586 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,14 @@ # Next Release +* Customer Leaderboards added +* Map made available to Customers +* Map renamed from "Supplier Map" to "Purchase Map" to fall in line with +previous change +* Added placeholder while password reset is not present +* Fixed error on store list during a transaction + + # v0.0.2 * Supplier map added to organisation view diff --git a/e2e/login.e2e-spec.ts b/e2e/login.e2e-spec.ts index 7fc72be..2bb5bd5 100644 --- a/e2e/login.e2e-spec.ts +++ b/e2e/login.e2e-spec.ts @@ -12,9 +12,9 @@ describe('Login Page', () => { expect(page.getLoginHeaderText()).toEqual('Login'); }); - it('should have a username box of type text', () => { + it('should have a username box of type email', () => { expect(page.isUsernameFieldPresent()).toBeTruthy(); - expect(page.getUsernameFieldType()).toBe('text'); + expect(page.getUsernameFieldType()).toEqual('email'); }); it('should have a password box of type password', () => { diff --git a/src/app/auth/login.component.html b/src/app/auth/login.component.html index d1992f5..9a87e9b 100644 --- a/src/app/auth/login.component.html +++ b/src/app/auth/login.component.html @@ -10,7 +10,7 @@
@ - +
diff --git a/src/app/dashboard/add-data.component.ts b/src/app/dashboard/add-data.component.ts index 13589c7..c894a84 100644 --- a/src/app/dashboard/add-data.component.ts +++ b/src/app/dashboard/add-data.component.ts @@ -237,7 +237,7 @@ export class AddDataComponent implements OnInit { town: '', postcode: '', }; - this.storeList = null; + this.storeList = []; this.amount = null; this.transactionFormInvalid = true; this.showAddStore = false; diff --git a/src/app/dashboard/dashboard.routing.ts b/src/app/dashboard/dashboard.routing.ts index d0e56fe..9794cfe 100644 --- a/src/app/dashboard/dashboard.routing.ts +++ b/src/app/dashboard/dashboard.routing.ts @@ -50,6 +50,7 @@ const routes: Routes = [ path: 'leaderboard', component: LeaderboardComponent, data: { title: 'Leaderboards' }, + canActivate: [CustomerGuard], }, { path: 'transaction-log', @@ -59,8 +60,7 @@ const routes: Routes = [ { path: 'map', component: MapComponent, - data: { title: 'Supplier Map' }, - canActivate: [OrgGuard], + data: { title: 'Purchase Map' }, }, { path: 'payroll-log', diff --git a/src/app/dashboard/map.component.html b/src/app/dashboard/map.component.html index 1c408a4..28b375f 100644 --- a/src/app/dashboard/map.component.html +++ b/src/app/dashboard/map.component.html @@ -3,7 +3,7 @@
- Supplier Map + Purchase Map Required Data marked in bold.
diff --git a/src/app/layouts/full-layout.component.html b/src/app/layouts/full-layout.component.html index 5dc056b..959ef60 100644 --- a/src/app/layouts/full-layout.component.html +++ b/src/app/layouts/full-layout.component.html @@ -40,12 +40,12 @@ Enter Feedback - -