Added Save & Leave button to Channel create.
This commit is contained in:
parent
676f20bfa9
commit
4e8cbf8419
1 changed files with 1 additions and 1 deletions
|
@ -573,7 +573,7 @@ export default class CUD extends Component {
|
||||||
{canModify &&
|
{canModify &&
|
||||||
<>
|
<>
|
||||||
<Button type="submit" className="btn-primary" icon="check" label={t('save')}/>
|
<Button type="submit" className="btn-primary" icon="check" label={t('save')}/>
|
||||||
{isEdit && <Button type="submit" className="btn-primary" icon="check" label={t('saveAndLeave')} onClickAsync={async () => await this.submitHandler(true)}/>}
|
<Button type="submit" className="btn-primary" icon="check" label={t('saveAndLeave')} onClickAsync={async () => await this.submitHandler(true)}/>
|
||||||
</>
|
</>
|
||||||
}
|
}
|
||||||
{canDelete && <LinkButton className="btn-danger" icon="trash-alt" label={t('delete')} to={`/channels/${this.props.entity.id}/delete`}/> }
|
{canDelete && <LinkButton className="btn-danger" icon="trash-alt" label={t('delete')} to={`/channels/${this.props.entity.id}/delete`}/> }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue