This commit is contained in:
Tom Moor
2017-11-19 17:12:48 -08:00
parent efb10b4e2a
commit 4c69e3543d
3 changed files with 4 additions and 5 deletions

View File

@@ -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 collections name at any time, however doing so might
confuse your team mates.
</HelpText>
<Input

View File

@@ -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 />

View File

@@ -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,