mirror of
https://github.com/urbit/shrub.git
synced 2025-01-03 10:02:32 +03:00
chat: set metadata properly and incorporate fixes
This commit is contained in:
parent
2b15010e66
commit
c960075a11
@ -208,7 +208,7 @@
|
||||
%- zing
|
||||
:~ (create-chat app-path.act security.act allow-history.act)
|
||||
(create-managed-group group-path.act security.act members.act)
|
||||
(create-metadata group-path.act app-path.act)
|
||||
(create-metadata title.act description.act group-path.act app-path.act)
|
||||
(create-security group-path.act security.act)
|
||||
~[(permission-hook-poke [%add-owned group-path.act group-path.act])]
|
||||
==
|
||||
@ -262,10 +262,12 @@
|
||||
==
|
||||
::
|
||||
++ create-metadata
|
||||
|= [group-path=path app-path=path]
|
||||
|= [title=@t description=@t group-path=path app-path=path]
|
||||
^- (list card)
|
||||
=/ =metadata
|
||||
%* . *metadata
|
||||
title title
|
||||
description description
|
||||
date-created now.bol
|
||||
creator
|
||||
%+ slav %p
|
||||
|
File diff suppressed because one or more lines are too long
@ -42,7 +42,7 @@ export class NewScreen extends Component {
|
||||
}
|
||||
|
||||
titleChange(event) {
|
||||
let asciiSafe = event.target.value
|
||||
let asciiSafe = event.target.value.toLowerCase()
|
||||
.replace(/[^a-z0-9~_.-]/g, "-");
|
||||
this.setState({
|
||||
idName: asciiSafe,
|
||||
@ -249,7 +249,7 @@ export class NewScreen extends Component {
|
||||
style={{
|
||||
resize: "none"
|
||||
}}
|
||||
onChange={this.titleChange}
|
||||
onChange={this.descriptionChange}
|
||||
/>
|
||||
<p className="f8 mt4 lh-copy db">
|
||||
Invite
|
||||
|
Loading…
Reference in New Issue
Block a user