Skip to content

Commit

Permalink
Search disabled for previews. Closes #234.
Browse files Browse the repository at this point in the history
  • Loading branch information
impworks committed Jul 1, 2023
1 parent 5b250cf commit 29039f6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Bonsai/Areas/Admin/Controllers/DraftsController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ public async Task<ActionResult> Preview(Guid? id)
InfoBlock = await _pagePresenter.GetPageInfoBlockAsync(page)
};
ViewBag.IsPreview = true;
ViewBag.DisableSearch = true;
return View("~/Areas/Front/Views/Page/Description.cshtml", vm);
}
}
Expand Down

0 comments on commit 29039f6

Please sign in to comment.