ui(code-search): fix to use CodeSearchMode
Drop unused IsFuzzy and IsRegExp
This commit is contained in:
parent
7068456d20
commit
d2efdda911
5 changed files with 2 additions and 6 deletions
|
@ -63,8 +63,6 @@ func Search(ctx *context.Context) {
|
|||
|
||||
ctx.Data["Keyword"] = keyword
|
||||
ctx.Data["Language"] = language
|
||||
ctx.Data["IsFuzzy"] = mode == FuzzySearchMode
|
||||
ctx.Data["IsRegExp"] = mode == RegExpSearchMode
|
||||
ctx.Data["CodeSearchMode"] = mode.String()
|
||||
ctx.Data["PageIsViewCode"] = true
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue