mirror of
https://github.com/ilyakooo0/urbit.git
synced 2025-01-05 13:55:54 +03:00
interface: last tweaks
This commit is contained in:
parent
c7e947d631
commit
cec014fa96
@ -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
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -98,6 +98,7 @@ export class SettingsScreen extends Component {
|
||||
association={association}
|
||||
resource="chat"
|
||||
app="chat"
|
||||
module=""
|
||||
/>
|
||||
<Spinner
|
||||
awaiting={this.state.awaiting}
|
||||
|
@ -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 });
|
||||
});
|
||||
|
@ -169,6 +169,7 @@ export class SettingsScreen extends Component {
|
||||
association={props.resource}
|
||||
resource="collection"
|
||||
app="graph"
|
||||
module="link"
|
||||
/>
|
||||
<Spinner
|
||||
awaiting={this.state.awaiting}
|
||||
|
@ -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, '', () => {});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user