Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

Commit

Permalink
v0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
MattMangoni committed Aug 26, 2018
1 parent 98d95ba commit 532e83b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion dist/js/tool.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 8 additions & 10 deletions resources/js/components/Tool.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,7 @@ export default {
install () {
Nova.request().get("/nova-vendor/nova-blogify-tool/migrate-tables")
.then(response => this.messages = response.data.messages)
.then(() => {
setTimeout(() => {
window.location.reload()
}, 1000)
})
.then(() => this.reloadPage())
.then(() => this.installationCheck())
.catch(error => this.error = true)
},
Expand All @@ -85,16 +81,18 @@ export default {
Nova.request().get("/nova-vendor/nova-blogify-tool/uninstall")
.then(response => this.messages = response.data.messages)
.then(() => {
setTimeout(() => {
window.location.reload()
}, 1000)
})
.then(() => this.reloadPage())
.catch(error => this.error = true)
},
resetMessages () {
this.messages = []
},
reloadPage () {
setTimeout(() => {
window.location.reload()
}, 1000)
}
}
}
Expand Down

0 comments on commit 532e83b

Please sign in to comment.