mirror of
https://github.com/overleaf/overleaf.git
synced 2024-09-16 02:52:31 -04:00
Remove tag from projects when deleted
This commit is contained in:
parent
1ee0ef2cde
commit
a0e129b880
1 changed files with 7 additions and 0 deletions
|
@ -24,6 +24,13 @@ define [
|
||||||
tag: () -> tag
|
tag: () -> tag
|
||||||
)
|
)
|
||||||
modalInstance.result.then () ->
|
modalInstance.result.then () ->
|
||||||
|
# Remove tag from projects
|
||||||
|
for project in $scope.projects
|
||||||
|
project.tags ||= []
|
||||||
|
index = project.tags.indexOf tag
|
||||||
|
if index > -1
|
||||||
|
project.tags.splice(index, 1)
|
||||||
|
# Remove tag
|
||||||
$scope.tags = $scope.tags.filter (t) -> t != tag
|
$scope.tags = $scope.tags.filter (t) -> t != tag
|
||||||
|
|
||||||
$scope.renameTag = (tag) ->
|
$scope.renameTag = (tag) ->
|
||||||
|
|
Loading…
Reference in a new issue