Merge pull request #260 from ruanyl/master
fixed: popup overlay not removed when there is error
This commit is contained in:
commit
92d081e5ef
|
@ -105,6 +105,7 @@ $(document).ready(() => {
|
|||
adapter.getRepoFromPath(showInNonCodePage, currRepo, token, (err, repo) => {
|
||||
if (err) {
|
||||
showError(err)
|
||||
helpPopup.clean()
|
||||
}
|
||||
else if (repo) {
|
||||
$toggler.show()
|
||||
|
|
|
@ -4,6 +4,11 @@ class HelpPopup {
|
|||
this.store = store
|
||||
}
|
||||
|
||||
clean() {
|
||||
const $view = this.$view
|
||||
$view.remove()
|
||||
}
|
||||
|
||||
show() {
|
||||
const $view = this.$view
|
||||
const store = this.store
|
||||
|
|
Loading…
Reference in New Issue