Commit eb4bb907 authored by Ujvari Gergely's avatar Ujvari Gergely Committed by Randall Leeds

Bugfix:

- using ng-model for the share-link
- Annotation deleted. is now being shown correclty
parent 2b276f1c
......@@ -273,17 +273,17 @@ class Annotation
$timeout -> $element.find('input').focus()
$timeout -> $element.find('input').select()
$scope.shared_link = window.location.protocol + '//' +
window.location.host + '/a/' + $scope.model.$modelValue.id
$scope.shared = false
# Check if this is a brand new annotation
annotation = $scope.thread.message?.annotation
if annotation? and drafts.contains annotation
$scope.editing = true
$scope.shared = false
$scope.share = ->
$scope.shared = not $scope.shared
$element.find('.share-dialog').slideToggle()
if $scope.shared
$scope.shared_link = window.location.host + '/a/' + $scope.model.$modelValue.id
console.log $scope.shared
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment