mirror of
https://github.com/ilyakooo0/urbit.git
synced 2025-01-01 19:46:36 +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) {
|
||||
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;
|
||||
};
|
||||
|
@ -167,8 +167,15 @@ export function Omnibox(props: OmniboxProps): ReactElement {
|
||||
if(shift && app === 'profile') {
|
||||
// TODO: hacky, fix
|
||||
link = link.replace('~profile', '~landscape/messages/dm');
|
||||
}
|
||||
if(link.startsWith('?')) {
|
||||
history.push({
|
||||
search: link
|
||||
});
|
||||
} else {
|
||||
history.push(link);
|
||||
|
||||
}
|
||||
history.push(link);
|
||||
} else {
|
||||
window.location.href = link;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user