summaryrefslogtreecommitdiffstats
path: root/packages/meteor-useraccounts-core/lib/templates_helpers/at_signin_link.js
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2019-04-20 15:18:33 +0300
committerLauri Ojansivu <x@xet7.org>2019-04-20 15:18:33 +0300
commit73e265d8fd050ae3daa67472b4465a5c49d68910 (patch)
tree677b233934a43d8f873e24c794ce289d85e3a9b7 /packages/meteor-useraccounts-core/lib/templates_helpers/at_signin_link.js
parent6117097a93bfb11c8bd4c87a23c44a50e22ceb87 (diff)
downloadwekan-73e265d8fd050ae3daa67472b4465a5c49d68910.tar.gz
wekan-73e265d8fd050ae3daa67472b4465a5c49d68910.tar.bz2
wekan-73e265d8fd050ae3daa67472b4465a5c49d68910.zip
Include to Wekan packages directory contents, so that meteor command would build all directly.
This also simplifies build scripts. Thanks to xet7 !
Diffstat (limited to 'packages/meteor-useraccounts-core/lib/templates_helpers/at_signin_link.js')
-rw-r--r--packages/meteor-useraccounts-core/lib/templates_helpers/at_signin_link.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/packages/meteor-useraccounts-core/lib/templates_helpers/at_signin_link.js b/packages/meteor-useraccounts-core/lib/templates_helpers/at_signin_link.js
new file mode 100644
index 00000000..14f6e88c
--- /dev/null
+++ b/packages/meteor-useraccounts-core/lib/templates_helpers/at_signin_link.js
@@ -0,0 +1,24 @@
+AT.prototype.atSigninLinkHelpers = {
+ disabled: function() {
+ return AccountsTemplates.disabled();
+ },
+ signInLink: function(){
+ return AccountsTemplates.getRoutePath("signIn");
+ },
+ preText: function(){
+ return T9n.get(AccountsTemplates.texts.signInLink_pre, markIfMissing=false);
+ },
+ linkText: function(){
+ return T9n.get(AccountsTemplates.texts.signInLink_link, markIfMissing=false);
+ },
+ suffText: function(){
+ return T9n.get(AccountsTemplates.texts.signInLink_suff, markIfMissing=false);
+ },
+};
+
+AT.prototype.atSigninLinkEvents = {
+ "click #at-signIn": function(event, t) {
+ event.preventDefault();
+ AccountsTemplates.linkClick("signIn");
+ },
+};