mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #1456 from sharelatex/sk-references-refresh
When refreshing linked file, if it's from mendeley/zotero, re-index GitOrigin-RevId: 4f9916d0682335e1477674b46c1133a4a9d0e6af
This commit is contained in:
parent
2463fef390
commit
09444a5e42
1 changed files with 11 additions and 1 deletions
|
@ -98,7 +98,17 @@ define(['base', 'moment'], (App, moment) =>
|
||||||
return ($scope.refreshError = null)
|
return ($scope.refreshError = null)
|
||||||
})
|
})
|
||||||
.catch(response => ($scope.refreshError = response.data))
|
.catch(response => ($scope.refreshError = response.data))
|
||||||
.finally(() => ($scope.refreshing = false))
|
.finally(() => {
|
||||||
|
$scope.refreshing = false
|
||||||
|
const provider = file.linkedFileData.provider
|
||||||
|
if (
|
||||||
|
provider === 'mendeley' ||
|
||||||
|
provider === 'zotero' ||
|
||||||
|
file.name.match(/^.*\.bib$/)
|
||||||
|
) {
|
||||||
|
ide.$scope.$emit('references:should-reindex', {})
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// Callback fired when the `img` tag fails to load,
|
// Callback fired when the `img` tag fails to load,
|
||||||
|
|
Loading…
Reference in a new issue