Fixes #425
This commit is contained in:
@@ -54,7 +54,7 @@ class CollectionEdit extends Component {
|
||||
<Flex column>
|
||||
<form onSubmit={this.handleSubmit}>
|
||||
<HelpText>
|
||||
You can edit a collection's name at any time, however doing so might
|
||||
You can edit a collection’s name at any time, however doing so might
|
||||
confuse your team mates.
|
||||
</HelpText>
|
||||
<Input
|
||||
|
||||
@@ -164,10 +164,9 @@ class DocumentScene extends Component {
|
||||
let document = this.document;
|
||||
|
||||
if (!document) return;
|
||||
this.isLoading = true;
|
||||
this.isSaving = true;
|
||||
document = await document.save();
|
||||
this.isLoading = false;
|
||||
this.isSaving = false;
|
||||
|
||||
if (redirect || this.props.newDocument) {
|
||||
this.props.history.push(document.url);
|
||||
@@ -219,7 +218,7 @@ class DocumentScene extends Component {
|
||||
<Container column auto>
|
||||
{isMoving && document && <DocumentMove document={document} />}
|
||||
{titleText && <PageTitle title={titleText} />}
|
||||
{this.isLoading && <LoadingIndicator />}
|
||||
{(this.isLoading || this.isSaving) && <LoadingIndicator />}
|
||||
{isFetching && (
|
||||
<CenteredContent>
|
||||
<LoadingState />
|
||||
|
||||
@@ -3,7 +3,7 @@ import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
type Props = {
|
||||
onClick: Function,
|
||||
onClick: (redirect: ?boolean) => *,
|
||||
disabled?: boolean,
|
||||
isNew?: boolean,
|
||||
isSaving?: boolean,
|
||||
|
||||
Reference in New Issue
Block a user