[datasource editor] Add description and label fields (#6927)

* Add description field for columns

* Add label for metrics
This commit is contained in:
Jack Zhang 2019-02-25 14:21:41 -08:00 committed by Maxime Beauchemin
parent e112659173
commit a0402b76c7
1 changed files with 10 additions and 0 deletions

View File

@ -83,6 +83,11 @@ function ColumnCollectionTable({
label={t('Label')}
control={<TextControl />}
/>
<Field
fieldKey="description"
label={t('Description')}
control={<TextControl />}
/>
{allowEditDataType &&
<Field
fieldKey="type"
@ -510,6 +515,11 @@ export class DatasourceEditor extends React.PureComponent {
expandFieldset={
<FormContainer>
<Fieldset>
<Field
fieldKey="verbose_name"
label={t('Label')}
control={<TextControl />}
/>
<Field
fieldKey="description"
label={t('Description')}