Skip to content

Commit

Permalink
added suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonEntholzer committed Oct 12, 2024
1 parent 1734d3d commit 68c40fc
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ <h4 jhiTranslate="artemisApp.userSettings.sshSettingsPage.keysTablePageTitle"></
deleteQuestion="artemisApp.userSettings.sshSettingsPage.deleteSshKeyQuestion"
[dialogError]="dialogError$"
>
<div jhiTranslate="artemisApp.userSettings.sshSettingsPage.deleteSshKey" class="ms-2">Delete</div>
<span jhiTranslate="artemisApp.userSettings.sshSettingsPage.deleteSshKey" class="ms-2">Delete</span>
</button>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ export class SshUserSettingsComponent implements OnInit {
protected readonly ButtonType = ButtonType;
protected readonly ButtonSize = ButtonSize;

setMessageBasedOnOS(os: string): void {
private setMessageBasedOnOS(os: string): void {
switch (os) {
case 'Windows':
this.copyInstructions = 'clip < ~/.ssh/id_ed25519.pub | clip';
this.copyInstructions = 'cat ~/.ssh/id_ed25519.pub | clip';
break;
case 'MacOS':
this.copyInstructions = 'pbcopy < ~/.ssh/id_ed25519.pub';
Expand All @@ -120,7 +120,7 @@ export class SshUserSettingsComponent implements OnInit {
this.copyInstructions = 'termux-clipboard-set < ~/.ssh/id_ed25519.pub';
break;
default:
this.copyInstructions = 'Ctrl + c';
this.copyInstructions = 'Ctrl + C';
}
}
}
4 changes: 2 additions & 2 deletions src/main/webapp/app/shared/util/os-detector.util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ export function getOS(): string {
return 'Windows';
} else if (userAgent.indexOf('Mac') !== -1) {
return 'MacOS';
} else if (userAgent.indexOf('Linux') !== -1) {
return 'Linux';
} else if (/Android/.test(userAgent)) {
return 'Android';
} else if (userAgent.indexOf('Linux') !== -1) {
return 'Linux';
} else if (/iPhone|iPad|iPod/.test(userAgent)) {
return 'iOS';
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/i18n/de/userSettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"editExistingSshKey": "Bearbeiten",
"viewExistingSshKey": "Ansehen",
"addNewSshKey": "SSH Schlüssel hinzufügen",
"sshKeyDetails": "SSH Key Informationen",
"sshKeyDetails": "SSH Schlüssel Informationen",
"deleteSshKey": "Löschen",
"sshKeyDisplayedInformation": "Das ist dein aktuell konfigurierter SSH-Schlüssel:",
"key": "Schlüssel",
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/i18n/en/userSettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"sshKeyDisplayedInformation": "This is your currently configured SSH key:",
"key": "Key",
"noKeysHaveBeenAdded": "No SSH keys have been added",
"whatToUseSSHForInfo": "Use SSH keys to connect simply and safely to repositories.",
"whatToUseSSHForInfo": "Use SSH keys to connect simply and securely to repositories.",
"learnMore": "Learn more about SSH keys",
"alreadyHaveKey": "Already have a key? Copy your key to the clipboard:",
"back": "Back",
Expand Down

0 comments on commit 68c40fc

Please sign in to comment.