diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-11-09 08:13:34 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-11-09 08:13:34 +0900 |
| commit | 60ef3e3563c95008bde52818a7d638d1d8ff9b19 (patch) | |
| tree | 085539a945faa4fe4105f82f65e5d320ea542b03 /src/client/app/dev/views | |
| parent | Clean up (diff) | |
| download | sharkey-60ef3e3563c95008bde52818a7d638d1d8ff9b19.tar.gz sharkey-60ef3e3563c95008bde52818a7d638d1d8ff9b19.tar.bz2 sharkey-60ef3e3563c95008bde52818a7d638d1d8ff9b19.zip | |
Refactor & Clean up
Diffstat (limited to 'src/client/app/dev/views')
| -rw-r--r-- | src/client/app/dev/views/app.vue | 2 | ||||
| -rw-r--r-- | src/client/app/dev/views/apps.vue | 2 | ||||
| -rw-r--r-- | src/client/app/dev/views/new-app.vue | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/client/app/dev/views/app.vue b/src/client/app/dev/views/app.vue index 4aced2274b..2379d71aa5 100644 --- a/src/client/app/dev/views/app.vue +++ b/src/client/app/dev/views/app.vue @@ -29,7 +29,7 @@ export default Vue.extend({ methods: { fetch() { this.fetching = true; - (this as any).api('app/show', { + this.$root.api('app/show', { appId: this.$route.params.id }).then(app => { this.app = app; diff --git a/src/client/app/dev/views/apps.vue b/src/client/app/dev/views/apps.vue index 4c8de9d48e..78a7cede98 100644 --- a/src/client/app/dev/views/apps.vue +++ b/src/client/app/dev/views/apps.vue @@ -30,7 +30,7 @@ export default Vue.extend({ }; }, mounted() { - (this as any).api('my/apps').then(apps => { + this.$root.api('my/apps').then(apps => { this.apps = apps; this.fetching = false; }); diff --git a/src/client/app/dev/views/new-app.vue b/src/client/app/dev/views/new-app.vue index 382d54fd67..298b6f9925 100644 --- a/src/client/app/dev/views/new-app.vue +++ b/src/client/app/dev/views/new-app.vue @@ -50,7 +50,7 @@ export default Vue.extend({ }, methods: { onSubmit() { - (this as any).api('app/create', { + this.$root.api('app/create', { name: this.name, description: this.description, callbackUrl: this.cb, |