mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-11 18:45:25 +00: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
|
||||
)
|
||||
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.renameTag = (tag) ->
|
||||
|
|
Loading…
Add table
Reference in a new issue