Skip to content
Snippets Groups Projects
Unverified Commit 15e6843a authored by Piero Mamberti's avatar Piero Mamberti Committed by GitHub
Browse files

753 - Clarify Account type cannot be changed (#774)

parent e7bfd35b
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,7 @@ import { Formik } from 'formik'; ...@@ -4,6 +4,7 @@ import { Formik } from 'formik';
import { determineOffBudget } from 'loot-core/src/shared/accounts'; import { determineOffBudget } from 'loot-core/src/shared/accounts';
import { toRelaxedNumber } from 'loot-core/src/shared/util'; import { toRelaxedNumber } from 'loot-core/src/shared/util';
import { colors } from 'loot-design/src/style';
import { import {
View, View,
...@@ -15,6 +16,7 @@ import { ...@@ -15,6 +16,7 @@ import {
InlineField, InlineField,
FormError, FormError,
InitialFocus, InitialFocus,
Text,
} from '../common'; } from '../common';
function CreateLocalAccount({ modalProps, actions, history }) { function CreateLocalAccount({ modalProps, actions, history }) {
...@@ -117,16 +119,53 @@ function CreateLocalAccount({ modalProps, actions, history }) { ...@@ -117,16 +119,53 @@ function CreateLocalAccount({ modalProps, actions, history }) {
justifyContent: 'flex-end', justifyContent: 'flex-end',
}} }}
> >
<label style={{ userSelect: 'none' }}> <View style={{ flexDirection: 'column' }}>
<input <label
name="offbudget" style={{
type="checkbox" userSelect: 'none',
checked={!!values.offbudget} textAlign: 'right',
onChange={handleChange} width: '100%',
onBlur={handleBlur} display: 'flex',
/>{' '} verticalAlign: 'center',
Off-budget justifyContent: 'flex-end',
</label> }}
htmlFor="offbudget"
>
<input
id="offbudget"
name="offbudget"
type="checkbox"
checked={!!values.offbudget}
onChange={handleChange}
onBlur={handleBlur}
/>
Off-budget
</label>
<div
style={{
textAlign: 'right',
fontSize: '0.7em',
color: colors.n5,
marginTop: 3,
}}
>
<Text>
This cannot be changed later. <br /> {'\n'}
See{' '}
<a
href="https://actualbudget.github.io/docs/Accounts/overview/#off-budget-accounts"
target="_blank"
rel="noopener noreferrer"
style={{
color: colors.n5,
}}
>
Accounts Overview
</a>{' '}
for more information.
</Text>
</div>
</View>
</View> </View>
<InlineField label="Balance" width="75%"> <InlineField label="Balance" width="75%">
......
---
category: Enhancements
authors: [pmamberti]
---
Clarify in the UI that Account Type cannot be changed after creation
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment