Add more information to dnssetup screen

This commit is contained in:
Johannes Zellner
2020-06-16 15:28:58 +02:00
parent e0334b3ac8
commit b58ca1506e
2 changed files with 24 additions and 7 deletions

View File

@@ -24,6 +24,7 @@ app.controller('SetupDNSController', ['$scope', '$http', '$timeout', 'Client', f
$scope.hyphenatedSubdomains = false;
$scope.advancedVisible = false;
$scope.webServerOrigin = '';
$scope.clipboardDone = false;
$scope.tlsProvider = [
{ name: 'Let\'s Encrypt Prod', value: 'letsencrypt-prod' },
@@ -293,5 +294,11 @@ app.controller('SetupDNSController', ['$scope', '$http', '$timeout', 'Client', f
});
}
var clipboard = new Clipboard('.clipboard');
clipboard.on('success', function () {
$scope.$apply(function () { $scope.clipboardDone = true; });
$timeout(function () { $scope.clipboardDone = false; }, 5000);
});
initialize();
}]);