@@ -120,29 +104,10 @@ class OrgInfo extends Component {
{Utils.bytesToSize(storage_usage)}
)}
-
-
-
{gettext('User default quota')}
- {Utils.bytesToSize(user_default_quota)}
-
-
-
-
- {this.state.isSetUserDefaultQuotaDialogOpen &&
-
- }
);
}
diff --git a/frontend/src/pages/org-admin/web-settings/input-item.js b/frontend/src/pages/org-admin/web-settings/input-item.js
index 5587a4faf81..9d5c4df714f 100644
--- a/frontend/src/pages/org-admin/web-settings/input-item.js
+++ b/frontend/src/pages/org-admin/web-settings/input-item.js
@@ -1,6 +1,6 @@
import React, { Component, Fragment } from 'react';
import PropTypes from 'prop-types';
-import { Input, Button } from 'reactstrap';
+import { Input, Button, InputGroup } from 'reactstrap';
import { gettext } from '../../../utils/constants';
import SettingItemBase from './setting-item-base';
@@ -12,6 +12,8 @@ const propTypes = {
helpTip: PropTypes.string.isRequired,
displayName: PropTypes.string.isRequired,
disabled: PropTypes.bool.isRequired,
+ inputAddon: PropTypes.node,
+ valueFixed: PropTypes.number,
};
class WebSettingInput extends Component {
@@ -43,16 +45,18 @@ class WebSettingInput extends Component {
};
onSubmit = (e) => {
+ const { valueFixed = 0 } = this.props;
const value = this.state.value.trim();
if (value != this.props.value) {
this.props.saveSetting(this.props.keyText, value);
+ this.setState({ value: parseInt(value).toFixed(valueFixed) });
}
this.toggleBtns();
};
render() {
const { isBtnsShown, value } = this.state;
- const { helpTip, displayName, inputType, disabled } = this.props;
+ const { helpTip, displayName, inputType, disabled, inputAddon } = this.props;
return (