diff options
Diffstat (limited to 'client')
-rw-r--r-- | client/components/boards/boardBody.js | 3 | ||||
-rw-r--r-- | client/config/accounts.js | 48 |
2 files changed, 2 insertions, 49 deletions
diff --git a/client/components/boards/boardBody.js b/client/components/boards/boardBody.js index 5c1c974f..5a74e61b 100644 --- a/client/components/boards/boardBody.js +++ b/client/components/boards/boardBody.js @@ -45,7 +45,8 @@ BlazeComponent.extendComponent({ }, scrollLeft(position = 0) { - this.$('.js-lists').animate({ + const lists = this.$('.js-lists'); + lists && lists.animate({ scrollLeft: position, }); }, diff --git a/client/config/accounts.js b/client/config/accounts.js deleted file mode 100644 index d475e6b2..00000000 --- a/client/config/accounts.js +++ /dev/null @@ -1,48 +0,0 @@ -const passwordField = AccountsTemplates.removeField('password'); -const emailField = AccountsTemplates.removeField('email'); -AccountsTemplates.addFields([{ - _id: 'username', - type: 'text', - displayName: 'username', - required: true, - minLength: 2, -}, emailField, passwordField]); - -AccountsTemplates.configure({ - defaultLayout: 'userFormsLayout', - defaultContentRegion: 'content', - confirmPassword: false, - enablePasswordChange: true, - sendVerificationEmail: true, - showForgotPasswordLink: true, - onLogoutHook() { - const homePage = 'home'; - if (FlowRouter.getRouteName() === homePage) { - FlowRouter.reload(); - } else { - FlowRouter.go(homePage); - } - }, -}); - -['signIn', 'signUp', 'resetPwd', 'forgotPwd', 'enrollAccount'].forEach( - (routeName) => AccountsTemplates.configureRoute(routeName)); - -// We display the form to change the password in a popup window that already -// have a title, so we unset the title automatically displayed by useraccounts. -AccountsTemplates.configure({ - texts: { - title: { - changePwd: '', - }, - }, -}); - -AccountsTemplates.configureRoute('changePwd', { - redirect() { - // XXX We should emit a notification once we have a notification system. - // Currently the user has no indication that his modification has been - // applied. - Popup.back(); - }, -}); |