mirror of
https://github.com/ilyakooo0/urbit.git
synced 2025-01-07 07:30:23 +03:00
interface: last tweaks
This commit is contained in:
parent
c7e947d631
commit
cec014fa96
@ -130,10 +130,7 @@
|
|||||||
==
|
==
|
||||||
--
|
--
|
||||||
::
|
::
|
||||||
++ on-poke ::on-poke:def
|
++ on-poke on-poke:def
|
||||||
|= [=mark =vase]
|
|
||||||
^- (quip card _this)
|
|
||||||
[cards.state this]
|
|
||||||
++ on-peek on-peek:def
|
++ on-peek on-peek:def
|
||||||
++ on-watch on-watch:def
|
++ on-watch on-watch:def
|
||||||
++ on-leave on-leave:def
|
++ on-leave on-leave:def
|
||||||
|
@ -5,7 +5,7 @@ import { Path, Patp } from '~/types/noun';
|
|||||||
|
|
||||||
export default class MetadataApi extends BaseApi<StoreState> {
|
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}`;
|
const creator = `~${this.ship}`;
|
||||||
return this.metadataAction({
|
return this.metadataAction({
|
||||||
add: {
|
add: {
|
||||||
@ -19,7 +19,8 @@ export default class MetadataApi extends BaseApi<StoreState> {
|
|||||||
description,
|
description,
|
||||||
color,
|
color,
|
||||||
'date-created': dateCreated,
|
'date-created': dateCreated,
|
||||||
creator
|
creator,
|
||||||
|
'module': moduleName
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -98,6 +98,7 @@ export class SettingsScreen extends Component {
|
|||||||
association={association}
|
association={association}
|
||||||
resource="chat"
|
resource="chat"
|
||||||
app="chat"
|
app="chat"
|
||||||
|
module=""
|
||||||
/>
|
/>
|
||||||
<Spinner
|
<Spinner
|
||||||
awaiting={this.state.awaiting}
|
awaiting={this.state.awaiting}
|
||||||
|
@ -281,7 +281,8 @@ export class GroupDetail extends Component {
|
|||||||
this.state.title,
|
this.state.title,
|
||||||
association.metadata.description,
|
association.metadata.description,
|
||||||
association.metadata['date-created'],
|
association.metadata['date-created'],
|
||||||
uxToHex(association.metadata.color)
|
uxToHex(association.metadata.color),
|
||||||
|
''
|
||||||
).then(() => {
|
).then(() => {
|
||||||
this.setState({ awaiting: false });
|
this.setState({ awaiting: false });
|
||||||
});
|
});
|
||||||
|
@ -169,6 +169,7 @@ export class SettingsScreen extends Component {
|
|||||||
association={props.resource}
|
association={props.resource}
|
||||||
resource="collection"
|
resource="collection"
|
||||||
app="graph"
|
app="graph"
|
||||||
|
module="link"
|
||||||
/>
|
/>
|
||||||
<Spinner
|
<Spinner
|
||||||
awaiting={this.state.awaiting}
|
awaiting={this.state.awaiting}
|
||||||
|
@ -12,7 +12,8 @@ export const MetadataSettings = (props) => {
|
|||||||
changeLoading,
|
changeLoading,
|
||||||
api,
|
api,
|
||||||
resource,
|
resource,
|
||||||
app
|
app,
|
||||||
|
module
|
||||||
} = props;
|
} = props;
|
||||||
|
|
||||||
const title =
|
const title =
|
||||||
@ -41,6 +42,7 @@ export const MetadataSettings = (props) => {
|
|||||||
val,
|
val,
|
||||||
association.metadata.description,
|
association.metadata.description,
|
||||||
association.metadata['date-created'],
|
association.metadata['date-created'],
|
||||||
|
module
|
||||||
uxToHex(association.metadata.color)
|
uxToHex(association.metadata.color)
|
||||||
).then(() => {
|
).then(() => {
|
||||||
changeLoading(false, false, '', () => {});
|
changeLoading(false, false, '', () => {});
|
||||||
@ -61,7 +63,8 @@ export const MetadataSettings = (props) => {
|
|||||||
association.metadata.title,
|
association.metadata.title,
|
||||||
val,
|
val,
|
||||||
association.metadata['date-created'],
|
association.metadata['date-created'],
|
||||||
uxToHex(association.metadata.color)
|
uxToHex(association.metadata.color),
|
||||||
|
module
|
||||||
).then(() => {
|
).then(() => {
|
||||||
changeLoading(false, false, '', () => {});
|
changeLoading(false, false, '', () => {});
|
||||||
});
|
});
|
||||||
@ -80,7 +83,8 @@ export const MetadataSettings = (props) => {
|
|||||||
association.metadata.title,
|
association.metadata.title,
|
||||||
association.metadata.description,
|
association.metadata.description,
|
||||||
association.metadata['date-created'],
|
association.metadata['date-created'],
|
||||||
val
|
val,
|
||||||
|
module
|
||||||
).then(() => {
|
).then(() => {
|
||||||
changeLoading(false, false, '', () => {});
|
changeLoading(false, false, '', () => {});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user