From 4d45aaa9ae9e047545afaf712eeb6879df8f6186 Mon Sep 17 00:00:00 2001 From: Alexander Skvortsov Date: Mon, 10 Aug 2020 00:51:47 -0400 Subject: [PATCH] update: forum/components/LoginButton --- js/src/forum/components/LogInButton.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/js/src/forum/components/LogInButton.js b/js/src/forum/components/LogInButton.js index dfbcaedd6..fc3a81470 100644 --- a/js/src/forum/components/LogInButton.js +++ b/js/src/forum/components/LogInButton.js @@ -4,21 +4,21 @@ import Button from '../../common/components/Button'; * The `LogInButton` component displays a social login button which will open * a popup window containing the specified path. * - * ### Props + * ### Attrs * * - `path` */ export default class LogInButton extends Button { - static initProps(props) { - props.className = (props.className || '') + ' LogInButton'; + initAttrs(attrs) { + attrs.className = (attrs.className || '') + ' LogInButton'; - props.onclick = function () { + attrs.onclick = function () { const width = 580; const height = 400; const $window = $(window); window.open( - app.forum.attribute('baseUrl') + props.path, + app.forum.attribute('baseUrl') + attrs.path, 'logInPopup', `width=${width},` + `height=${height},` + @@ -28,6 +28,6 @@ export default class LogInButton extends Button { ); }; - super.initProps(props); + super.initAttrs(attrs); } }