mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-28 10:01:11 +02:00
* make displayName a global helper * rename authTabTypes to visibleMountsByType * remove superfluous arg * move all of mount displaying to component * rename hasMountData to isVisibleMount, update comment
12 lines
343 B
TypeScript
12 lines
343 B
TypeScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: BUSL-1.1
|
|
*/
|
|
|
|
import { ALL_LOGIN_METHODS } from 'vault/utils/supported-login-methods';
|
|
|
|
export default function authDisplayName(methodType: string) {
|
|
const displayName = ALL_LOGIN_METHODS?.find((t) => t.type === methodType)?.displayName;
|
|
return displayName || methodType;
|
|
}
|