Permalink
Browse files

fix(slacknotes): url re-fetching when changing dates

  • Loading branch information...
eteubert committed Jan 13, 2019
1 parent 974c7f8 commit 344456ddeab0488500d374db7d1aaa80f8f49d41
Showing with 9 additions and 2 deletions.
  1. +9 −2 js/src/components/Slacknotes.vue
@@ -312,7 +312,6 @@ export default {
const element = list[i];
element.click();
}
}, 200);
})
@@ -326,14 +325,22 @@ export default {
},
fetchLinkTitle: function (link) {
const url = link.link;
this.fetching.push(url);
$.ajax(podlove_vue.rest_url + 'podlove/v1/slacknotes/resolve_url?url=' + encodeURIComponent(url)).done(function(data) {
$.ajax(podlove_vue.rest_url + 'podlove/v1/slacknotes/resolve_url?url=' + encodeURIComponent(url)).done((data) => {
if (data.title) {
link.title = data.title;
}
if (data.url) {
link.link = data.url;
}
// delete from fetching
var index = this.fetching.indexOf(url);
if (index !== -1) this.fetching.splice(index, 1);
})
},
toggleExclusion: function(link) {

0 comments on commit 344456d

Please sign in to comment.