mirror of
https://github.com/ilyakooo0/urbit.git
synced 2025-01-04 13:19:48 +03:00
interface: update omnibox to preview group join
This commit is contained in:
parent
67083ecf70
commit
0c2bbd23e6
@ -56,7 +56,7 @@ const commandIndex = function (currentGroup, groups, associations) {
|
|||||||
if (canAdd) {
|
if (canAdd) {
|
||||||
commands.push(result('Channel: Create', `/~landscape${workspace}/new`, 'Groups', null));
|
commands.push(result('Channel: Create', `/~landscape${workspace}/new`, 'Groups', null));
|
||||||
}
|
}
|
||||||
commands.push(result('Groups: Join', '/~landscape/join', 'Groups', null));
|
commands.push(result('Groups: Join', '?join-kind=group', 'Groups', null));
|
||||||
|
|
||||||
return commands;
|
return commands;
|
||||||
};
|
};
|
||||||
|
@ -167,8 +167,15 @@ export function Omnibox(props: OmniboxProps): ReactElement {
|
|||||||
if(shift && app === 'profile') {
|
if(shift && app === 'profile') {
|
||||||
// TODO: hacky, fix
|
// TODO: hacky, fix
|
||||||
link = link.replace('~profile', '~landscape/messages/dm');
|
link = link.replace('~profile', '~landscape/messages/dm');
|
||||||
|
}
|
||||||
|
if(link.startsWith('?')) {
|
||||||
|
history.push({
|
||||||
|
search: link
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
history.push(link);
|
||||||
|
|
||||||
}
|
}
|
||||||
history.push(link);
|
|
||||||
} else {
|
} else {
|
||||||
window.location.href = link;
|
window.location.href = link;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user