mirror of
https://github.com/wekan/wekan.git
synced 2025-09-22 01:50:48 +02:00
Speed up board loading, skip loading the full sidebar
- only load the sidebar when viewing
This commit is contained in:
parent
42fad8fb98
commit
f483b162ce
3 changed files with 4 additions and 2 deletions
|
@ -218,6 +218,8 @@ BlazeComponent.extendComponent({
|
||||||
if (Utils.canModifyBoard() && currentBoard.lists().length === 0) {
|
if (Utils.canModifyBoard() && currentBoard.lists().length === 0) {
|
||||||
boardComponent.openNewListForm();
|
boardComponent.openNewListForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Utils.setBackgroundImage();
|
||||||
},
|
},
|
||||||
|
|
||||||
notDisplayThisBoard() {
|
notDisplayThisBoard() {
|
||||||
|
|
|
@ -13,7 +13,8 @@ template(name="sidebar")
|
||||||
h2
|
h2
|
||||||
a.fa.fa-chevron-left.js-back-home
|
a.fa.fa-chevron-left.js-back-home
|
||||||
= getViewTitle
|
= getViewTitle
|
||||||
+Template.dynamic(template=getViewTemplate)
|
if isOpen
|
||||||
|
+Template.dynamic(template=getViewTemplate)
|
||||||
|
|
||||||
template(name='homeSidebar')
|
template(name='homeSidebar')
|
||||||
hr
|
hr
|
||||||
|
|
|
@ -333,7 +333,6 @@ BlazeComponent.extendComponent({
|
||||||
|
|
||||||
onRendered() {
|
onRendered() {
|
||||||
this.setLoading(false);
|
this.setLoading(false);
|
||||||
Utils.setBackgroundImage();
|
|
||||||
},
|
},
|
||||||
|
|
||||||
setError(error) {
|
setError(error) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue