Refactor & Clean up
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
});
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user