diff --git a/pkg/interface/chat/src/js/components/member.js b/pkg/interface/chat/src/js/components/member.js index c5bfec9fd..5547cf152 100644 --- a/pkg/interface/chat/src/js/components/member.js +++ b/pkg/interface/chat/src/js/components/member.js @@ -92,11 +92,6 @@ export class MemberScreen extends Component { />
Members
-{memberText}
- {members} -Modify Permissions
{modifyText}
@@ -109,6 +104,11 @@ export class MemberScreen extends Component { /> ) : null}Members
+{memberText}
+ {members} +Change description
Change the description of this chat
@@ -161,12 +154,7 @@ export class SettingsScreen extends Component { value={this.state.description} disabled={!chatOwner} onChange={this.changeDescription} - /> - { + onBlur={() => { if (chatOwner) { props.api.setSpinner(true); props.api.metadataAdd( @@ -177,13 +165,11 @@ export class SettingsScreen extends Component { association.metadata['date-created'], uxToHex(association.metadata.color) ).then(() => { - this.refs.description.innerText = "Saved"; props.api.setSpinner(false); }) } - }}> - Save - + }} + />Change color
Give this chat a color when viewing group channels
@@ -195,12 +181,7 @@ export class SettingsScreen extends Component { value={this.state.color} disabled={!chatOwner} onChange={this.changeColor} - /> - { + onBlur={() => { if ((chatOwner) && (this.state.color.match(/[0-9A-F]{6}/i))) { props.api.setSpinner(true); props.api.metadataAdd( @@ -211,13 +192,11 @@ export class SettingsScreen extends Component { association.metadata['date-created'], this.state.color ).then(() => { - this.refs.color.innerText = "Saved"; props.api.setSpinner(false); }) } - }}> - Save - + }} + /> diff --git a/pkg/interface/chat/src/js/components/skeleton.js b/pkg/interface/chat/src/js/components/skeleton.js index b3c53cf10..4358609ea 100644 --- a/pkg/interface/chat/src/js/components/skeleton.js +++ b/pkg/interface/chat/src/js/components/skeleton.js @@ -37,10 +37,9 @@ export class Skeleton extends Component {Change description
Change the description of this group
@@ -196,11 +192,7 @@ export class GroupDetail extends Component { value={this.state.description} disabled={!groupOwner} onChange={this.changeDescription} - /> - { + onBlur={() => { if (groupOwner) { props.api.setSpinner(true); props.api.metadataAdd( @@ -211,11 +203,11 @@ export class GroupDetail extends Component { association.metadata['date-created'], uxToHex(association.metadata.color) ).then(() => { - this.refs.description.innerText = "Saved"; props.api.setSpinner(false); }) } - }}>Save + }} + />Members
-- { 'Everyone with permission to use this collection.' + - ((isManaged && props.amOwner) - ? ' Removing someone removes them from the group.' - : '') - } -
- {members} -Modify Permissions
- { 'Invite someone to this collection.' + + {'Invite someone to this collection.' + (isManaged ? ' Adding someone adds them to the group.' : '') @@ -99,6 +88,17 @@ export class MemberScreen extends Component { />
Members
++ { 'Everyone with permission to use this collection.' + + ((isManaged && props.amOwner) + ? ' Removing someone removes them from the group.' + : '') + } +
+ {members} +Select or create a collection to begin. diff --git a/pkg/interface/link/src/js/components/settings.js b/pkg/interface/link/src/js/components/settings.js index d651ffca8..63ec55360 100644 --- a/pkg/interface/link/src/js/components/settings.js +++ b/pkg/interface/link/src/js/components/settings.js @@ -125,12 +125,7 @@ export class SettingsScreen extends Component { value={this.state.title} disabled={!props.amOwner} onChange={this.changeTitle} - /> - { + onBlur={() => { if (props.amOwner) { api.setSpinner(true); api.metadataAdd( @@ -142,12 +137,10 @@ export class SettingsScreen extends Component { uxToHex(resource.metadata.color) ).then(() => { api.setSpinner(false); - this.refs.rename.innerText = "Saved"; }); } - }}> - Save - + }} + />
Change description
@@ -161,12 +154,7 @@ export class SettingsScreen extends Component { value={this.state.description} disabled={!props.amOwner} onChange={this.changeDescription} - /> - { + onBlur={() => { if (props.amOwner) { api.setSpinner(true); api.metadataAdd( @@ -178,12 +166,10 @@ export class SettingsScreen extends Component { uxToHex(resource.color) ).then(() => { api.setSpinner(false); - this.refs.description.innerText = "Saved"; }); } - }}> - Save - + }} + />
Change color
Give this collection a color when viewing group channels
@@ -195,12 +181,7 @@ export class SettingsScreen extends Component { value={this.state.color} disabled={!props.amOwner} onChange={this.changeColor} - /> - { + onBlur={() => { if (props.amOwner && state.color.match(/[0-9A-F]{6}/i)) { api.setSpinner(true); api.metadataAdd( @@ -212,12 +193,10 @@ export class SettingsScreen extends Component { state.color ).then(() => { api.setSpinner(false); - this.refs.color.innerText = "Saved"; }); } - }}> - Save - + }} + />Change description
Change the description of this notebook
@@ -167,32 +160,25 @@ export class Settings extends Component { } value={this.state.description} onChange={this.changeDescription} - /> - { + onBlur={() => { this.setState({ disabled: true }); - window.api.setSpinner(true); - window.api - .action("publish", "publish-action", { - "edit-book": { - book: this.props.book, - title: this.props.notebook.title, - about: this.state.description, - coms: this.props.notebook.comments, - group: null - } - }) - .then(() => { - this.setState({ disabled: false }); - this.refs.description.innerText = "Saved"; - window.api.setSpinner(false); - }); - }}> - Save - + window.api.setSpinner(true); + window.api + .action("publish", "publish-action", { + "edit-book": { + book: this.props.book, + title: this.props.notebook.title, + about: this.state.description, + coms: this.props.notebook.comments, + group: null + } + }) + .then(() => { + this.setState({ disabled: false }); + window.api.setSpinner(false); + }); + }} + />