Skip to content

Commit

Permalink
Update icons for SSH and username/password creds (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
timja authored Dec 8, 2022
1 parent 711998f commit a60991a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.jenkinsci.plugins.azurekeyvaultplugin.credentials.sshuserprivatekey;

import com.cloudbees.jenkins.plugins.sshcredentials.SSHUserPrivateKey;
import com.cloudbees.jenkins.plugins.sshcredentials.impl.Messages;
import com.cloudbees.plugins.credentials.CredentialsProvider;
import com.cloudbees.plugins.credentials.impl.BaseStandardCredentials;
import edu.umd.cs.findbugs.annotations.NonNull;
Expand All @@ -13,7 +14,6 @@
import java.util.stream.Collectors;
import org.apache.commons.lang.StringUtils;
import org.jenkinsci.plugins.azurekeyvaultplugin.AzureCredentialsProvider;
import org.jenkinsci.plugins.plaincredentials.impl.Messages;
import org.jvnet.localizer.ResourceBundleHolder;

public class AzureSSHUserPrivateKeyCredentials extends BaseStandardCredentials implements SSHUserPrivateKey {
Expand Down Expand Up @@ -84,7 +84,12 @@ public static class DescriptorImpl extends BaseStandardCredentialsDescriptor {
@Override
@NonNull
public String getDisplayName() {
return ResourceBundleHolder.get(Messages.class).format("StringCredentialsImpl.secret_text");
return ResourceBundleHolder.get(Messages.class).format("BasicSSHUserPrivateKey.DisplayName");
}

@Override
public String getIconClassName() {
return "symbol-fingerprint";
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public String getDisplayName() {
*/
@Override
public String getIconClassName() {
return "icon-credentials-userpass";
return "symbol-id-card";
}

@Override
Expand Down

0 comments on commit a60991a

Please sign in to comment.