mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #1574 from sharelatex/sk-ignore-external-updates-from-gitbridge
When a document is updated externally via git-bridge, don't show warning GitOrigin-RevId: bede2fa0c555a597ac40e8680ff30a51da0ab429
This commit is contained in:
parent
870f183595
commit
97145847ef
1 changed files with 6 additions and 0 deletions
|
@ -236,6 +236,12 @@ define([
|
||||||
if (this._ignoreExternalUpdates) {
|
if (this._ignoreExternalUpdates) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if (
|
||||||
|
_.property(['meta', 'type'])(update) === 'external' &&
|
||||||
|
_.property(['meta', 'source'])(update) === 'git-bridge'
|
||||||
|
) {
|
||||||
|
return
|
||||||
|
}
|
||||||
return this.ide.showGenericMessageModal(
|
return this.ide.showGenericMessageModal(
|
||||||
'Document Updated Externally',
|
'Document Updated Externally',
|
||||||
'This document was just updated externally. Any recent changes you have made may have been overwritten. To see previous versions please look in the history.'
|
'This document was just updated externally. Any recent changes you have made may have been overwritten. To see previous versions please look in the history.'
|
||||||
|
|
Loading…
Reference in a new issue