mirror of
https://github.com/urbit/shrub.git
synced 2024-12-13 16:03:36 +03:00
filter fix
This commit is contained in:
parent
6e36d70875
commit
0ba490847a
@ -15,6 +15,7 @@ module.exports = recl
|
|||||||
key = $t.attr('data-key')
|
key = $t.attr('data-key')
|
||||||
if txt.length is 0 then txt = null
|
if txt.length is 0 then txt = null
|
||||||
else switch key
|
else switch key
|
||||||
|
when 'owner' then txt = "~#{txt}"
|
||||||
when 'audience' then txt = txt.split " "
|
when 'audience' then txt = txt.split " "
|
||||||
when 'tags' then txt = [txt]
|
when 'tags' then txt = [txt]
|
||||||
@props.onChange key,txt
|
@props.onChange key,txt
|
||||||
|
@ -123,6 +123,9 @@ module.exports = recl({
|
|||||||
txt = null;
|
txt = null;
|
||||||
} else {
|
} else {
|
||||||
switch (key) {
|
switch (key) {
|
||||||
|
case 'owner':
|
||||||
|
txt = "~" + txt;
|
||||||
|
break;
|
||||||
case 'audience':
|
case 'audience':
|
||||||
txt = txt.split(" ");
|
txt = txt.split(" ");
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user