Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #18510: Loading directive's page is very slow #3352

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,11 @@ object DisplayDirectiveTree extends Loggable {
val xml = activeTechnique.newestAvailableTechnique match {
case Some(technique) =>
val btnCreateDirective = createDirective match {
case Some(newDirective) => <span class="btn btn-success btn-xs create" style="opacity: 0;" onclick={"event.preventDefault();event.stopPropagation();"++newDirective(technique, activeTechnique)} title="Create Directive with latest version"><i class="fa fa-plus"></i></span>
case Some(newDirective) =>
import net.liftweb.http.js.JsExp._
<span class="btn btn-success btn-xs create" style="opacity: 0;" onclick={
s"""event.preventDefault();event.stopPropagation();${SHtml.ajaxCall("", _ => newDirective(technique, activeTechnique))}"""
} title="Create Directive with latest version"><i class="fa fa-plus"></i></span>
case None => NodeSeq.Empty
}
val tooltipContent =
Expand Down