This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository pollen. See https://gitlab.nuiton.org/chorem/pollen.git commit 41112819c70fb2d13ca95c66833e730e49797b64 Author: Kevin Morin <morin@codelutin.com> Date: Fri Oct 27 11:00:53 2017 +0200 corrections linter --- pollen-ui-riot-js/src/main/web/js/AuthService.js | 26 +++++++++++----------- .../src/main/web/tag/FilterLoginProvider.tag.js | 2 +- .../tag/components/UserEmailAddressList.tag.html | 12 +++++----- 3 files changed, 20 insertions(+), 20 deletions(-) diff --git a/pollen-ui-riot-js/src/main/web/js/AuthService.js b/pollen-ui-riot-js/src/main/web/js/AuthService.js index b1ab27b2..19d110ca 100644 --- a/pollen-ui-riot-js/src/main/web/js/AuthService.js +++ b/pollen-ui-riot-js/src/main/web/js/AuthService.js @@ -26,19 +26,19 @@ class AuthService extends FetchService { constructor() { super(); this.providerIcons = { - "amazon": "amazon", - "facebook": "facebook-official", - "flickr": "flickr", - "foursquare": "foursquare", - "github": "github", - "googleplus": "google", - "instagram": "instagram", - "linkedin": "linkedin", - "linkedin2": "linkedin", - "stackexchange": "stack-exchange", - "twitter": "twitter", - "yahoo": "yahoo" - }; + amazon: "amazon", + facebook: "facebook-official", + flickr: "flickr", + foursquare: "foursquare", + github: "github", + googleplus: "google", + instagram: "instagram", + linkedin: "linkedin", + linkedin2: "linkedin", + stackexchange: "stack-exchange", + twitter: "twitter", + yahoo: "yahoo" + }; } signIn(login, password) { diff --git a/pollen-ui-riot-js/src/main/web/tag/FilterLoginProvider.tag.js b/pollen-ui-riot-js/src/main/web/tag/FilterLoginProvider.tag.js index c2961265..4b1f0dcc 100644 --- a/pollen-ui-riot-js/src/main/web/tag/FilterLoginProvider.tag.js +++ b/pollen-ui-riot-js/src/main/web/tag/FilterLoginProvider.tag.js @@ -1,5 +1,5 @@ let riot = require("riot"); -let route = require("riot-route/lib/tag").default; // a voir pourquoi le default doit ĂȘtre mi ; +let route = require("riot-route/lib/tag").default; // a voir pourquoi le default doit ĂȘtre mis ; let session = require("../js/Session"); let userService = require("../js/UserService"); diff --git a/pollen-ui-riot-js/src/main/web/tag/components/UserEmailAddressList.tag.html b/pollen-ui-riot-js/src/main/web/tag/components/UserEmailAddressList.tag.html index f49ea357..cd57e322 100644 --- a/pollen-ui-riot-js/src/main/web/tag/components/UserEmailAddressList.tag.html +++ b/pollen-ui-riot-js/src/main/web/tag/components/UserEmailAddressList.tag.html @@ -79,8 +79,8 @@ if (!confirm) { return Promise.reject(); } - return userService.deleteEmailAddress(emailAddressId, this.opts.admin ? this.opts.user.id : null) - }).then(result => { + return userService.deleteEmailAddress(emailAddressId, this.opts.admin ? this.opts.user.id : null); + }).then(() => { this.opts.user.emailAddresses.splice(index, 1); this.update(); }); @@ -93,14 +93,14 @@ }); }; - this.submitEmailAddress = e => { + this.submitEmailAddress = () => { let emailAddress = this.refs.newEmailAddress.value; userService.addEmailAddressToUser(emailAddress, this.opts.admin ? this.opts.user.id : null).then((result) => { this.opts.user.emailAddresses.push({id: result.id, emailAddress: emailAddress, validated: false}); this.refs.newEmailAddress.value = null; this.update(); - }).catch((e) => { - this.errors.email = e.email; + }).catch((err) => { + this.errors.email = err.email; this.update(); }); }; @@ -136,4 +136,4 @@ } </style> -</UserEmailAddressList> \ No newline at end of file +</UserEmailAddressList> -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.