This repository has been archived by the owner on Jan 8, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding correct source field for radios when showing messages from input.
Fixes #856
- Loading branch information
1 parent
5e3cff5
commit ca3e229
Showing
2 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package views.helpers; | ||
|
||
import org.graylog2.restclient.models.ClusterEntity; | ||
import org.graylog2.restclient.models.Radio; | ||
|
||
/** | ||
* @author Dennis Oelkers <[email protected]> | ||
*/ | ||
public class InputHelper { | ||
public static String sourceFieldForNode(ClusterEntity clusterEntity) { | ||
if (clusterEntity instanceof Radio) | ||
return "gl2_source_radio_input"; | ||
else | ||
return "gl2_source_input"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters