mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-13 18:50:29 +03:00
added search term ability in PublicChannels component
This commit is contained in:
parent
6586f933ff
commit
e1a0acdf4a
4 changed files with 22 additions and 10 deletions
|
|
@ -27,9 +27,10 @@ function openInviteList() {
|
|||
});
|
||||
}
|
||||
|
||||
function openPublicChannels() {
|
||||
function openPublicChannels(searchTerm) {
|
||||
appDispatcher.dispatch({
|
||||
type: cons.actions.navigation.OPEN_PUBLIC_CHANNELS,
|
||||
searchTerm,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ class Navigation extends EventEmitter {
|
|||
this.emit(cons.events.navigation.INVITE_LIST_OPENED);
|
||||
},
|
||||
[cons.actions.navigation.OPEN_PUBLIC_CHANNELS]: () => {
|
||||
this.emit(cons.events.navigation.PUBLIC_CHANNELS_OPENED);
|
||||
this.emit(cons.events.navigation.PUBLIC_CHANNELS_OPENED, action.searchTerm);
|
||||
},
|
||||
[cons.actions.navigation.OPEN_CREATE_CHANNEL]: () => {
|
||||
this.emit(cons.events.navigation.CREATE_CHANNEL_OPENED);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue