1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-05 17:02:47 +00:00

[library history setting] modified the UI of the 'setting disabled' tip (#7436)

This commit is contained in:
llj
2025-02-06 13:07:15 +08:00
committed by GitHub
parent a96990ebbc
commit 6eb86005f7

View File

@@ -110,9 +110,7 @@ class LibHistorySetting extends React.Component {
<ModalBody> <ModalBody>
<Form> <Form>
{!enableRepoHistorySetting && {!enableRepoHistorySetting &&
<FormGroup> <p className="tip">{gettext('Setting library history is disabled by Admin.')}</p>
<Label className="error">{gettext('Setting library history is disabled by Admin.')}</Label>
</FormGroup>
} }
<FormGroup check> <FormGroup check>
<Input type="radio" name="radio1" checked={this.state.allHistory} disabled={!enableRepoHistorySetting} onChange={() => {this.setLimitDays('allHistory');}}/>{' '} <Input type="radio" name="radio1" checked={this.state.allHistory} disabled={!enableRepoHistorySetting} onChange={() => {this.setLimitDays('allHistory');}}/>{' '}