interface: last tweaks

This commit is contained in:
Logan Allen 2020-09-24 19:08:52 -05:00
parent c7e947d631
commit cec014fa96
6 changed files with 15 additions and 10 deletions

View File

@ -130,10 +130,7 @@
==
--
::
++ on-poke ::on-poke:def
|= [=mark =vase]
^- (quip card _this)
[cards.state this]
++ on-poke on-poke:def
++ on-peek on-peek:def
++ on-watch on-watch:def
++ on-leave on-leave:def

View File

@ -5,7 +5,7 @@ import { Path, Patp } from '~/types/noun';
export default class MetadataApi extends BaseApi<StoreState> {
metadataAdd(appName: string, appPath: Path, groupPath: Path, title: string, description: string, dateCreated: string, color: string) {
metadataAdd(appName: string, appPath: Path, groupPath: Path, title: string, description: string, dateCreated: string, color: string, moduleName: string) {
const creator = `~${this.ship}`;
return this.metadataAction({
add: {
@ -19,7 +19,8 @@ export default class MetadataApi extends BaseApi<StoreState> {
description,
color,
'date-created': dateCreated,
creator
creator,
'module': moduleName
}
}
});

View File

@ -98,6 +98,7 @@ export class SettingsScreen extends Component {
association={association}
resource="chat"
app="chat"
module=""
/>
<Spinner
awaiting={this.state.awaiting}

View File

@ -281,7 +281,8 @@ export class GroupDetail extends Component {
this.state.title,
association.metadata.description,
association.metadata['date-created'],
uxToHex(association.metadata.color)
uxToHex(association.metadata.color),
''
).then(() => {
this.setState({ awaiting: false });
});

View File

@ -169,6 +169,7 @@ export class SettingsScreen extends Component {
association={props.resource}
resource="collection"
app="graph"
module="link"
/>
<Spinner
awaiting={this.state.awaiting}

View File

@ -12,7 +12,8 @@ export const MetadataSettings = (props) => {
changeLoading,
api,
resource,
app
app,
module
} = props;
const title =
@ -41,6 +42,7 @@ export const MetadataSettings = (props) => {
val,
association.metadata.description,
association.metadata['date-created'],
module
uxToHex(association.metadata.color)
).then(() => {
changeLoading(false, false, '', () => {});
@ -61,7 +63,8 @@ export const MetadataSettings = (props) => {
association.metadata.title,
val,
association.metadata['date-created'],
uxToHex(association.metadata.color)
uxToHex(association.metadata.color),
module
).then(() => {
changeLoading(false, false, '', () => {});
});
@ -80,7 +83,8 @@ export const MetadataSettings = (props) => {
association.metadata.title,
association.metadata.description,
association.metadata['date-created'],
val
val,
module
).then(() => {
changeLoading(false, false, '', () => {});
});