Работа над LibsPage

This commit is contained in:
Book Pauk
2020-10-29 15:14:27 +07:00
parent 57e521e2ff
commit bc21ace416
3 changed files with 22 additions and 14 deletions

View File

@@ -81,6 +81,9 @@ class LibsPage extends Vue {
this.commit('reader/setLibs', d.data);
} else if (d.type == 'close') {
this.close();
} else if (d.type == 'submitUrl') {
this.$emit('load-book', d.data);
this.sendMessage({type: 'notify', data: 'Ссылка передана в читалку'});
}
}
@@ -105,13 +108,6 @@ class LibsPage extends Vue {
this.sendMessage({type: 'libs', data: this.libs});
}
/* submitUrl() {
if (this.bookUrl) {
this.$emit('load-book', {url: this.addProtocol(this.bookUrl), force: true});
this.bookUrl = '';
}
}*/
close() {
this.$emit('libs-close');
}