mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-23 14:13:26 +00:00
Add in renamed or deleted modal
This commit is contained in:
parent
fb98509789
commit
6e6b20d3af
2 changed files with 12 additions and 1 deletions
|
@ -77,6 +77,17 @@ define [
|
||||||
ide.pdfManager = new PdfManager(ide, $scope)
|
ide.pdfManager = new PdfManager(ide, $scope)
|
||||||
ide.permissionsManager = new PermissionsManager(ide, $scope)
|
ide.permissionsManager = new PermissionsManager(ide, $scope)
|
||||||
ide.binaryFilesManager = new BinaryFilesManager(ide, $scope)
|
ide.binaryFilesManager = new BinaryFilesManager(ide, $scope)
|
||||||
|
|
||||||
|
inited = false
|
||||||
|
$scope.$on "project:joined", () ->
|
||||||
|
return if inited
|
||||||
|
inited = true
|
||||||
|
if $scope.project.deletedByExternalDataSource
|
||||||
|
ide.showGenericMessageModal("Project Renamed or Deleted", """
|
||||||
|
This project has either been renamed or deleted by an external data source such as Dropbox.
|
||||||
|
We don't want to delete your data on ShareLaTeX, so this project still contains your history and collaborators.
|
||||||
|
If the project has been renamed please look in your project list for a new project under the new name.
|
||||||
|
""")
|
||||||
]
|
]
|
||||||
|
|
||||||
angular.bootstrap(document.body, ["SharelatexApp"])
|
angular.bootstrap(document.body, ["SharelatexApp"])
|
|
@ -49,7 +49,7 @@ define [], () ->
|
||||||
@$scope.$apply () =>
|
@$scope.$apply () =>
|
||||||
@$scope.permissions.write = false
|
@$scope.permissions.write = false
|
||||||
@$scope.connection.forced_disconnect = true
|
@$scope.connection.forced_disconnect = true
|
||||||
@ide.socket.socket.disconnect()
|
@ide.socket.disconnect()
|
||||||
@ide.showGenericMessageModal("Please Refresh", """
|
@ide.showGenericMessageModal("Please Refresh", """
|
||||||
We're performing maintenance on ShareLaTeX and you need to refresh the editor.
|
We're performing maintenance on ShareLaTeX and you need to refresh the editor.
|
||||||
Sorry for any inconvenience.
|
Sorry for any inconvenience.
|
||||||
|
|
Loading…
Reference in a new issue