From 91d8ee5a52ece1cb78e5e3bb74178d41761d540f Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 20 Feb 2017 10:34:57 +0900 Subject: wip --- src/web/app/auth/tags/form.tag | 4 ++-- src/web/app/auth/tags/index.tag | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/web/app/auth') 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(); -- cgit v1.2.3-freya