summaryrefslogtreecommitdiff
path: root/src/web/app/auth
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-02-20 10:34:57 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-02-20 10:34:57 +0900
commit91d8ee5a52ece1cb78e5e3bb74178d41761d540f (patch)
tree0c08cdc5739e7250ab724049ff0a327643ed2be9 /src/web/app/auth
parentwip (diff)
downloadsharkey-91d8ee5a52ece1cb78e5e3bb74178d41761d540f.tar.gz
sharkey-91d8ee5a52ece1cb78e5e3bb74178d41761d540f.tar.bz2
sharkey-91d8ee5a52ece1cb78e5e3bb74178d41761d540f.zip
wip
Diffstat (limited to 'src/web/app/auth')
-rw-r--r--src/web/app/auth/tags/form.tag4
-rw-r--r--src/web/app/auth/tags/index.tag2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/web/app/auth/tags/form.tag b/src/web/app/auth/tags/form.tag
index b5ace73716..bb424d98c2 100644
--- a/src/web/app/auth/tags/form.tag
+++ b/src/web/app/auth/tags/form.tag
@@ -111,13 +111,13 @@
this.session = this.opts.session
this.app = @session.app
- cancel() {
+ this.cancel = () => {
this.api 'auth/deny' do
token: @session.token
.then =>
this.trigger('denied');
- accept() {
+ this.accept = () => {
this.api 'auth/accept' do
token: @session.token
.then =>
diff --git a/src/web/app/auth/tags/index.tag b/src/web/app/auth/tags/index.tag
index a9f7828b96..0059fef20f 100644
--- a/src/web/app/auth/tags/index.tag
+++ b/src/web/app/auth/tags/index.tag
@@ -127,7 +127,7 @@
this.state = 'fetch-session-error'
this.update();
- accepted() {
+ this.accepted = () => {
this.state = 'accepted'
this.update();