Merge pull request #8286 from mkllnk/permalink-check

Avoid superfluous permalink check on site load
This commit is contained in:
jibees
2021-10-22 09:14:41 +02:00
committed by GitHub
2 changed files with 5 additions and 1 deletions

View File

@@ -9,6 +9,10 @@ angular.module("admin.enterprises")
$scope.checking = false
$scope.$watch "Enterprise.permalink", (newValue, oldValue) ->
if newValue == initialPermalink
$scope.availability = ""
return
$scope.checking = true
pendingRequest = PermalinkChecker.check(newValue)

View File

@@ -34,7 +34,7 @@ angular.module("admin.enterprises").factory 'PermalinkChecker', ($q, $http) ->
deferredRequest.reject()
deferredRequest.promise.finally ->
request = deferredRequest.promise = null;
request = deferredRequest.promise = null
deferredRequest.promise