style: login placeholder
This commit is contained in:
@@ -157,8 +157,14 @@ export const renderInstanceType = (
|
||||
],
|
||||
[
|
||||
intl.formatMessage({ id: 'gpuservice.instance.disk.persistent' }),
|
||||
toGB(volume?.persistentTemplate?.spec?.capacity) ||
|
||||
toGB(pvCapacityByName?.[volume?.persistent?.name]) ||
|
||||
// toGB returns '-' (a truthy string) for falsy input, so only call it
|
||||
// when a value actually exists — otherwise the first branch would
|
||||
// short-circuit the chain and the PV fallbacks would never run.
|
||||
(volume?.persistentTemplate?.spec?.capacity &&
|
||||
toGB(volume.persistentTemplate.spec.capacity)) ||
|
||||
(volume?.persistent?.name &&
|
||||
pvCapacityByName?.[volume.persistent.name] &&
|
||||
toGB(pvCapacityByName[volume.persistent.name])) ||
|
||||
volume?.persistent?.name
|
||||
]
|
||||
]
|
||||
|
||||
@@ -120,9 +120,6 @@ const LocalUserForm: React.FC<LocalUserFormProps> = (props) => {
|
||||
>
|
||||
<Input
|
||||
autoComplete="username"
|
||||
placeholder={intl.formatMessage({
|
||||
id: 'common.login.username.holder'
|
||||
})}
|
||||
prefix={<UserOutlined />}
|
||||
style={{ height: 44 }}
|
||||
/>
|
||||
@@ -150,9 +147,6 @@ const LocalUserForm: React.FC<LocalUserFormProps> = (props) => {
|
||||
autoComplete="current-password"
|
||||
prefix={<LockOutlined />}
|
||||
style={{ height: 44 }}
|
||||
placeholder={intl.formatMessage({
|
||||
id: 'common.login.password.holder'
|
||||
})}
|
||||
suffix={
|
||||
<Flex align="center" gap={0}>
|
||||
<Button
|
||||
|
||||
Reference in New Issue
Block a user