admin: Can change capture_regexp along with key

This commit is contained in:
nemunaire 2025-03-26 16:01:19 +01:00
parent 0c53372618
commit a7d521fbdd
2 changed files with 19 additions and 10 deletions

View file

@ -2317,9 +2317,9 @@ angular.module("FICApp")
}
$scope.saveFlag = function () {
if (this.flag.id) {
this.flag.$update();
this.flag.$update().then(function() {}, function(error) { $scope.addToast('danger', 'Impossible de mettre à jour le flag :', error.data.errmsg); });
} else {
this.flag.$save({ exerciceId: $routeParams.exerciceId });
this.flag.$save({ exerciceId: $routeParams.exerciceId }).then(function() {}, function(error) { $scope.addToast('danger', 'Impossible de créer le flag :', error.data.errmsg); });
}
$rootScope.staticFilesNeedUpdate++;
}