mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
Remove tag from projects when deleted
This commit is contained in:
@@ -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) ->
|
||||
|
||||
Reference in New Issue
Block a user