Apply suggestions from code review

Co-authored-by: Tobias Hagemann <tobias.hagemann@skymatic.de>
This commit is contained in:
Armin Schrenk 2022-08-09 10:37:22 +02:00 committed by GitHub
parent f84eef5639
commit 44d19bdefe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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());
}

View File

@ -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