Merge pull request #20198 from shariquerik/load-workspace-skeleton-fix
This commit is contained in:
commit
f65230fcb7
1 changed files with 10 additions and 10 deletions
|
|
@ -1425,27 +1425,27 @@ frappe.views.Workspace = class Workspace {
|
|||
}
|
||||
|
||||
create_page_skeleton() {
|
||||
if ($(".layout-main-section").find(".workspace-skeleton").length) return;
|
||||
if (this.body.find(".workspace-skeleton").length) return;
|
||||
|
||||
$(".layout-main-section").prepend(frappe.render_template("workspace_loading_skeleton"));
|
||||
$(".layout-main-section").find(".codex-editor").addClass("hidden");
|
||||
this.body.prepend(frappe.render_template("workspace_loading_skeleton"));
|
||||
this.body.find(".codex-editor").addClass("hidden");
|
||||
}
|
||||
|
||||
remove_page_skeleton() {
|
||||
$(".layout-main-section").find(".codex-editor").removeClass("hidden");
|
||||
$(".layout-main-section").find(".workspace-skeleton").remove();
|
||||
this.body.find(".codex-editor").removeClass("hidden");
|
||||
this.body.find(".workspace-skeleton").remove();
|
||||
}
|
||||
|
||||
create_sidebar_skeleton() {
|
||||
if ($(".list-sidebar").find(".workspace-sidebar-skeleton").length) return;
|
||||
if (this.sidebar.find(".workspace-sidebar-skeleton").length) return;
|
||||
|
||||
$(".list-sidebar").prepend(frappe.render_template("workspace_sidebar_loading_skeleton"));
|
||||
$(".desk-sidebar").addClass("hidden");
|
||||
this.sidebar.prepend(frappe.render_template("workspace_sidebar_loading_skeleton"));
|
||||
this.sidebar.find(".standard-sidebar-section").addClass("hidden");
|
||||
}
|
||||
|
||||
remove_sidebar_skeleton() {
|
||||
$(".desk-sidebar").removeClass("hidden");
|
||||
$(".list-sidebar").find(".workspace-sidebar-skeleton").remove();
|
||||
this.sidebar.find(".standard-sidebar-section").removeClass("hidden");
|
||||
this.sidebar.find(".workspace-sidebar-skeleton").remove();
|
||||
}
|
||||
|
||||
register_awesomebar_shortcut() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue