diff --git a/CHANGELOG.md b/CHANGELOG.md index 4f3c39a..44f290b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,9 +2,19 @@ # Next Release +# v0.1.6 + +* Changed layout of category choosing on upload +* Added ability to edit and remove recurring transactions +* Fixed HttpClient error log viewing +* Made transaction validation more lenient + # v0.1.5 * Fixed category viewing on purchase +* Changed category view from radio buttons to full label buttons +* Amended local validation of submit +* Changed recurring purchase selection view # v0.1.4 diff --git a/package-lock.json b/package-lock.json index ecdbe1a..7334a98 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6752,9 +6752,9 @@ "integrity": "sha1-zJJ7GR2Yb+D7atKVeQdQxV3L6FE=" }, "ngx-bootstrap": { - "version": "2.0.0-beta.8", - "resolved": "https://registry.npmjs.org/ngx-bootstrap/-/ngx-bootstrap-2.0.0-beta.8.tgz", - "integrity": "sha512-e+3euXDb4nhzxn9kBO4RPWwRaI2ef7Lg+us8Yo2DBfD/Kuk/vl7ksWjoolMFLKEGpcTcKhMT/4BH5dUx+S4AtA==" + "version": "2.0.0-rc.1", + "resolved": "https://registry.npmjs.org/ngx-bootstrap/-/ngx-bootstrap-2.0.0-rc.1.tgz", + "integrity": "sha512-/ARJ2LLrT4bDghOVS16btJovJ7lsDcILmBUvGt0EXzNlU1HbTQZKfl/OKhrufmRgHQIzc6kXckVUhz5d5QIsUA==" }, "ngx-pagination": { "version": "3.0.3", diff --git a/package.json b/package.json index 11dcb5e..5d7e254 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "moment": "^2.21.0", "ng2-charts": "1.6.0", "ng2-validation-manager": "0.5.3", - "ngx-bootstrap": "2.0.0-beta.8", + "ngx-bootstrap": "2.0.0-rc.1", "ngx-pagination": "3.0.3", "rxjs": "5.5.6", "ts-helpers": "1.1.2", diff --git a/src/app/auth/register.component.ts b/src/app/auth/register.component.ts index 419eeef..95c86db 100644 --- a/src/app/auth/register.component.ts +++ b/src/app/auth/register.component.ts @@ -78,24 +78,18 @@ export class RegisterComponent { .register(data) .subscribe( result => { - console.log('registered!'); this.registerStatus = 'success'; - console.log(this.registerStatus); this.router.navigate(['/dashboard']); }, error => { console.log('Register Error'); console.log(error); try { - console.log(error.error); - const jsonError = error.json(); - console.log('boop'); - this.registerStatusError = '"' + jsonError.error + '" Error, ' + jsonError.message; + this.registerStatusError = '"' + error.error.error + '" Error, ' + error.error.message; } catch (e) { this.registerStatusError = 'There was a server error, please try again later.'; } this.registerStatus = 'send_failed'; - console.log(this.registerStatus); } ); } @@ -127,19 +121,13 @@ export class RegisterComponent { .register(data) .subscribe( result => { - console.log('registered!'); this.registerStatus = 'success'; - console.log(this.registerStatus); this.router.navigate(['/dashboard']); }, error => { - console.log('Register Error'); console.log(error); try { - console.log(error.error); - const jsonError = error.json(); - console.log('boop'); - this.registerStatusError = '"' + jsonError.error + '" Error, ' + jsonError.message; + this.registerStatusError = '"' + error.error.error + '" Error, ' + error.error.message; } catch (e) { this.registerStatusError = 'There was a server error, please try again later.'; } diff --git a/src/app/dashboard/account-edit.component.ts b/src/app/dashboard/account-edit.component.ts index 7590154..ea839fd 100644 --- a/src/app/dashboard/account-edit.component.ts +++ b/src/app/dashboard/account-edit.component.ts @@ -105,23 +105,17 @@ export class AccountEditComponent implements OnInit { .accountEditUpdate(submitData) .subscribe( result => { - console.log('data submitted!'); this.submitStatus = 'success'; - console.log(this.submitStatus); }, error => { console.log('Edit Error'); console.log(error); try { - console.log(error.error); - const jsonError = error.json(); - console.log('boop'); - this.submitStatusError = '"' + jsonError.error + '" Error, ' + jsonError.message; + this.submitStatusError = '"' + error.error.error + '" Error, ' + error.error.message; } catch (e) { this.submitStatusError = 'There was a server error, please try again later.'; } this.submitStatus = 'send_failed'; - console.log(this.submitStatus); } ); } @@ -131,7 +125,6 @@ export class AccountEditComponent implements OnInit { if (!this.settingForm.valid && !this.settingCustomerForm.valid) { console.log('Not Valid!'); this.submitStatus = 'validation_failed'; - console.log(this.submitStatus); return; } diff --git a/src/app/dashboard/add-data.component.html b/src/app/dashboard/add-data.component.html index 329c7d9..f1630c4 100644 --- a/src/app/dashboard/add-data.component.html +++ b/src/app/dashboard/add-data.component.html @@ -46,29 +46,22 @@