Avoid superfluous permalink check on site load

This commit is contained in:
Maikel Linke
2021-09-29 12:55:24 +10:00
parent 7a49b304d1
commit 75731ed546

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)