소스 검색

Apply suggestions from code review

Co-authored-by: Tobias Hagemann <tobias.hagemann@skymatic.de>
Armin Schrenk 3 년 전
부모
커밋
44d19bdefe
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 2
      src/main/java/org/cryptomator/ui/keyloading/hub/ReceiveKeyController.java
  2. 1 1
      src/main/resources/i18n/strings.properties

+ 2 - 2
src/main/java/org/cryptomator/ui/keyloading/hub/ReceiveKeyController.java

@@ -75,7 +75,7 @@ public class ReceiveKeyController implements FxController {
 		try {
 			switch (response.statusCode()) {
 				case 200 -> retrievalSucceeded(response);
-				case 402 -> hubLicenseExceeded();
+				case 402 -> licenseExceeded();
 				case 403 -> accessNotGranted();
 				case 404 -> needsDeviceRegistration();
 				default -> throw new IOException("Unexpected response " + response.statusCode());
@@ -95,7 +95,7 @@ public class ReceiveKeyController implements FxController {
 		}
 	}
 
-	private void hubLicenseExceeded() {
+	private void licenseExceeded() {
 		window.setScene(licenseExceededScene.get());
 	}
 

+ 1 - 1
src/main/resources/i18n/strings.properties

@@ -154,7 +154,7 @@ hub.unauthorized.message=Access denied
 hub.unauthorized.description=Your device has not yet been authorized to access this vault. Ask the vault owner to authorize it.
 ### License Exceeded
 hub.licenseExceeded.message=License exceeded
-hub.licenseExceeded.description=Cryptomator Hub has more vault users than the license permits. To enable unlock and other management functions again, please contact your hub administrator to upgrade the license or remove users from vaults.
+hub.licenseExceeded.description=Cryptomator Hub has given access to more users than its license permits. Please contact your Hub admin to upgrade the license or a vault admin to remove users from vaults.
 
 
 # Lock