зеркало из
1
0
Форкнуть 0

add aria label for password textfield (#648)

This commit is contained in:
YingXue 2024-02-16 11:25:58 -08:00 коммит произвёл GitHub
Родитель 4fa7fa8f55
Коммит b83b246c20
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
5 изменённых файлов: 18 добавлений и 0 удалений

Просмотреть файл

@ -113,6 +113,7 @@ export const AddDevice: React.FC = () => {
onChange={changePrimaryKey} onChange={changePrimaryKey}
type={'password'} type={'password'}
canRevealPassword={true} canRevealPassword={true}
revealPasswordAriaLabel={t(ResourceKeys.common.revealPassword)}
errorMessage={!!primaryKey.error ? t(primaryKey.error) : ''} errorMessage={!!primaryKey.error ? t(primaryKey.error) : ''}
description={t(ResourceKeys.deviceIdentity.authenticationType.symmetricKey.primaryKeyTooltip)} description={t(ResourceKeys.deviceIdentity.authenticationType.symmetricKey.primaryKeyTooltip)}
/> />
@ -124,6 +125,7 @@ export const AddDevice: React.FC = () => {
onChange={changeSecondaryKey} onChange={changeSecondaryKey}
type={'password'} type={'password'}
canRevealPassword={true} canRevealPassword={true}
revealPasswordAriaLabel={t(ResourceKeys.common.revealPassword)}
errorMessage={!!secondaryKey.error ? t(secondaryKey.error) : ''} errorMessage={!!secondaryKey.error ? t(secondaryKey.error) : ''}
description={t(ResourceKeys.deviceIdentity.authenticationType.symmetricKey.secondaryKeyTooltip)} description={t(ResourceKeys.deviceIdentity.authenticationType.symmetricKey.secondaryKeyTooltip)}
/> />
@ -142,6 +144,7 @@ export const AddDevice: React.FC = () => {
onChange={changePrimaryThumbprint} onChange={changePrimaryThumbprint}
type={'password'} type={'password'}
canRevealPassword={true} canRevealPassword={true}
revealPasswordAriaLabel={t(ResourceKeys.common.revealPassword)}
errorMessage={!!primaryKey.thumbprintError ? t(primaryKey.thumbprintError) : ''} errorMessage={!!primaryKey.thumbprintError ? t(primaryKey.thumbprintError) : ''}
description={t(ResourceKeys.deviceIdentity.authenticationType.selfSigned.primaryThumbprintTooltip)} description={t(ResourceKeys.deviceIdentity.authenticationType.selfSigned.primaryThumbprintTooltip)}
/> />
@ -153,6 +156,7 @@ export const AddDevice: React.FC = () => {
onChange={changeSecondaryThumbprint} onChange={changeSecondaryThumbprint}
type={'password'} type={'password'}
canRevealPassword={true} canRevealPassword={true}
revealPasswordAriaLabel={t(ResourceKeys.common.revealPassword)}
errorMessage={!!secondaryKey.thumbprintError ? t(secondaryKey.thumbprintError) : ''} errorMessage={!!secondaryKey.thumbprintError ? t(secondaryKey.thumbprintError) : ''}
description={t(ResourceKeys.deviceIdentity.authenticationType.selfSigned.secondaryThumbprintTooltip)} description={t(ResourceKeys.deviceIdentity.authenticationType.selfSigned.secondaryThumbprintTooltip)}
/> />

Просмотреть файл

@ -131,6 +131,7 @@ export const DeviceIdentityInformation: React.FC<DeviceIdentityDataProps & Devic
value={state.identity.authentication.x509Thumbprint.primaryThumbprint} value={state.identity.authentication.x509Thumbprint.primaryThumbprint}
type={'password'} type={'password'}
canRevealPassword={true} canRevealPassword={true}
revealPasswordAriaLabel={t(ResourceKeys.common.revealPassword)}
readOnly={true} readOnly={true}
description={t(ResourceKeys.deviceIdentity.authenticationType.selfSigned.primaryThumbprintTooltip)} description={t(ResourceKeys.deviceIdentity.authenticationType.selfSigned.primaryThumbprintTooltip)}
/> />
@ -140,6 +141,7 @@ export const DeviceIdentityInformation: React.FC<DeviceIdentityDataProps & Devic
value={state.identity.authentication.x509Thumbprint.secondaryThumbprint} value={state.identity.authentication.x509Thumbprint.secondaryThumbprint}
type={'password'} type={'password'}
canRevealPassword={true} canRevealPassword={true}
revealPasswordAriaLabel={t(ResourceKeys.common.revealPassword)}
readOnly={true} readOnly={true}
description={t(ResourceKeys.deviceIdentity.authenticationType.selfSigned.secondaryThumbprintTooltip)} description={t(ResourceKeys.deviceIdentity.authenticationType.selfSigned.secondaryThumbprintTooltip)}
/> />
@ -149,6 +151,7 @@ export const DeviceIdentityInformation: React.FC<DeviceIdentityDataProps & Devic
value={generateX509ConnectionString(hostName, identity.deviceId)} value={generateX509ConnectionString(hostName, identity.deviceId)}
type={'password'} type={'password'}
canRevealPassword={true} canRevealPassword={true}
revealPasswordAriaLabel={t(ResourceKeys.common.revealPassword)}
readOnly={true} readOnly={true}
description={t(ResourceKeys.deviceIdentity.authenticationType.selfSigned.connectionStringTooltip)} description={t(ResourceKeys.deviceIdentity.authenticationType.selfSigned.connectionStringTooltip)}
/> />
@ -164,6 +167,7 @@ export const DeviceIdentityInformation: React.FC<DeviceIdentityDataProps & Devic
value={generateX509ConnectionString(hostName, identity.deviceId)} value={generateX509ConnectionString(hostName, identity.deviceId)}
type={'password'} type={'password'}
canRevealPassword={true} canRevealPassword={true}
revealPasswordAriaLabel={t(ResourceKeys.common.revealPassword)}
readOnly={true} readOnly={true}
description={t(ResourceKeys.deviceIdentity.authenticationType.ca.connectionStringTooltip)} description={t(ResourceKeys.deviceIdentity.authenticationType.ca.connectionStringTooltip)}
/> />
@ -178,6 +182,7 @@ export const DeviceIdentityInformation: React.FC<DeviceIdentityDataProps & Devic
value={state.identity.authentication.symmetricKey.primaryKey} value={state.identity.authentication.symmetricKey.primaryKey}
type={'password'} type={'password'}
canRevealPassword={true} canRevealPassword={true}
revealPasswordAriaLabel={t(ResourceKeys.common.revealPassword)}
onChange={changePrimaryKey} onChange={changePrimaryKey}
description={t(ResourceKeys.deviceIdentity.authenticationType.symmetricKey.primaryKeyTooltip)} description={t(ResourceKeys.deviceIdentity.authenticationType.symmetricKey.primaryKeyTooltip)}
/> />
@ -188,6 +193,7 @@ export const DeviceIdentityInformation: React.FC<DeviceIdentityDataProps & Devic
value={state.identity.authentication.symmetricKey.secondaryKey} value={state.identity.authentication.symmetricKey.secondaryKey}
type={'password'} type={'password'}
canRevealPassword={true} canRevealPassword={true}
revealPasswordAriaLabel={t(ResourceKeys.common.revealPassword)}
onChange={changeSecondaryKey} onChange={changeSecondaryKey}
description={t(ResourceKeys.deviceIdentity.authenticationType.symmetricKey.secondaryKeyTooltip)} description={t(ResourceKeys.deviceIdentity.authenticationType.symmetricKey.secondaryKeyTooltip)}
/> />
@ -198,6 +204,7 @@ export const DeviceIdentityInformation: React.FC<DeviceIdentityDataProps & Devic
value={generateConnectionString(hostName, identity.deviceId, identity.authentication.symmetricKey.primaryKey)} value={generateConnectionString(hostName, identity.deviceId, identity.authentication.symmetricKey.primaryKey)}
type={'password'} type={'password'}
canRevealPassword={true} canRevealPassword={true}
revealPasswordAriaLabel={t(ResourceKeys.common.revealPassword)}
readOnly={true} readOnly={true}
description={t(ResourceKeys.deviceIdentity.authenticationType.symmetricKey.primaryConnectionStringTooltip)} description={t(ResourceKeys.deviceIdentity.authenticationType.symmetricKey.primaryConnectionStringTooltip)}
/> />
@ -208,6 +215,7 @@ export const DeviceIdentityInformation: React.FC<DeviceIdentityDataProps & Devic
value={generateConnectionString(hostName, identity.deviceId, identity.authentication.symmetricKey.secondaryKey)} value={generateConnectionString(hostName, identity.deviceId, identity.authentication.symmetricKey.secondaryKey)}
type={'password'} type={'password'}
canRevealPassword={true} canRevealPassword={true}
revealPasswordAriaLabel={t(ResourceKeys.common.revealPassword)}
readOnly={true} readOnly={true}
description={t(ResourceKeys.deviceIdentity.authenticationType.symmetricKey.secondaryConnectionStringTooltip)} description={t(ResourceKeys.deviceIdentity.authenticationType.symmetricKey.secondaryConnectionStringTooltip)}
/> />

Просмотреть файл

@ -127,6 +127,7 @@ export const AddModuleIdentity: React.FC = () => {
onChange={changePrimaryKey} onChange={changePrimaryKey}
type={'password'} type={'password'}
canRevealPassword={true} canRevealPassword={true}
revealPasswordAriaLabel={t(ResourceKeys.common.revealPassword)}
errorMessage={!!primaryKey.error ? t(primaryKey.error) : ''} errorMessage={!!primaryKey.error ? t(primaryKey.error) : ''}
description={t(ResourceKeys.moduleIdentity.authenticationType.symmetricKey.primaryKeyTooltip)} description={t(ResourceKeys.moduleIdentity.authenticationType.symmetricKey.primaryKeyTooltip)}
/> />
@ -138,6 +139,7 @@ export const AddModuleIdentity: React.FC = () => {
onChange={changeSecondaryKey} onChange={changeSecondaryKey}
type={'password'} type={'password'}
canRevealPassword={true} canRevealPassword={true}
revealPasswordAriaLabel={t(ResourceKeys.common.revealPassword)}
errorMessage={!!secondaryKey.error ? t(secondaryKey.error) : ''} errorMessage={!!secondaryKey.error ? t(secondaryKey.error) : ''}
description={t(ResourceKeys.moduleIdentity.authenticationType.symmetricKey.secondaryKeyTooltip)} description={t(ResourceKeys.moduleIdentity.authenticationType.symmetricKey.secondaryKeyTooltip)}
/> />
@ -156,6 +158,7 @@ export const AddModuleIdentity: React.FC = () => {
onChange={changePrimaryThumbprint} onChange={changePrimaryThumbprint}
type={'password'} type={'password'}
canRevealPassword={true} canRevealPassword={true}
revealPasswordAriaLabel={t(ResourceKeys.common.revealPassword)}
errorMessage={!!primaryKey.thumbprintError ? t(primaryKey.thumbprintError) : ''} errorMessage={!!primaryKey.thumbprintError ? t(primaryKey.thumbprintError) : ''}
description={t(ResourceKeys.moduleIdentity.authenticationType.selfSigned.primaryThumbprintTooltip)} description={t(ResourceKeys.moduleIdentity.authenticationType.selfSigned.primaryThumbprintTooltip)}
/> />
@ -167,6 +170,7 @@ export const AddModuleIdentity: React.FC = () => {
onChange={changeSecondaryThumbprint} onChange={changeSecondaryThumbprint}
type={'password'} type={'password'}
canRevealPassword={true} canRevealPassword={true}
revealPasswordAriaLabel={t(ResourceKeys.common.revealPassword)}
readOnly={false} readOnly={false}
errorMessage={!!secondaryKey.thumbprintError ? t(secondaryKey.thumbprintError) : ''} errorMessage={!!secondaryKey.thumbprintError ? t(secondaryKey.thumbprintError) : ''}
description={t(ResourceKeys.moduleIdentity.authenticationType.selfSigned.secondaryThumbprintTooltip)} description={t(ResourceKeys.moduleIdentity.authenticationType.selfSigned.secondaryThumbprintTooltip)}

Просмотреть файл

@ -11,6 +11,7 @@
"home": "Home", "home": "Home",
"learnMore": "Learn more", "learnMore": "Learn more",
"loading": "Loading...", "loading": "Loading...",
"revealPassword": "Show content",
"maskedCopyableTextField": { "maskedCopyableTextField": {
"toggleMask": { "toggleMask": {
"label": { "label": {

Просмотреть файл

@ -170,6 +170,7 @@ export class ResourceKeys {
confirm : "common.navigation.confirm", confirm : "common.navigation.confirm",
expand : "common.navigation.expand", expand : "common.navigation.expand",
}, },
revealPassword : "common.revealPassword",
}; };
public static connectionStrings = { public static connectionStrings = {
addConnectionCommand : { addConnectionCommand : {