Skip to content

Commit

Permalink
#1731 Fix freetag colour configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Mar 1, 2021
1 parent 3235aaf commit 1948c63
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions thehive/app/org/thp/thehive/services/TagSrv.scala
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,8 @@ class TagSrv @Inject() (

def freeTagColour: String = freeTagColourConfig.get

private val defaultColourConfig: ConfigItem[String, String] =
appConfig.item[String]("tags.defaultColour", "Default colour of the automatically created tags")

def defaultColour: String = defaultColourConfig.get

private def freeTag(tagName: String)(implicit graph: Graph, authContext: AuthContext): Tag =
Tag(freeTagNamespace, tagName, None, None, defaultColour)
Tag(freeTagNamespace, tagName, None, None, freeTagColour)

private def freeTagNamespace(implicit graph: Graph, authContext: AuthContext): String =
s"_freetags_${organisationSrv.currentId(graph, authContext).value}"
Expand Down

0 comments on commit 1948c63

Please sign in to comment.