Make feeds linkable
This commit is contained in:
parent
ef02f13ef4
commit
3f20bd1cd3
@ -183,6 +183,7 @@
|
|||||||
this.selectedItem = undefined;
|
this.selectedItem = undefined;
|
||||||
this.items.forEach(item => item.Read = item.Read || item.PendingRead);
|
this.items.forEach(item => item.Read = item.Read || item.PendingRead);
|
||||||
this.selectedFeed = feed;
|
this.selectedFeed = feed;
|
||||||
|
window.location.hash = feed;
|
||||||
},
|
},
|
||||||
loadItem(item) {
|
loadItem(item) {
|
||||||
if (this.selectedItem === item.ID) {
|
if (this.selectedItem === item.ID) {
|
||||||
@ -342,6 +343,9 @@
|
|||||||
])
|
])
|
||||||
.then(() => {
|
.then(() => {
|
||||||
this.setBusy(false);
|
this.setBusy(false);
|
||||||
|
if (window.location.hash.length > 1) {
|
||||||
|
this.loadFeed(window.location.hash.substr(1));
|
||||||
|
}
|
||||||
})
|
})
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
|
Loading…
Reference in New Issue
Block a user