Browse Source

Revert creating new list to left, now creates again to right. Thanks to whowillcare !

Revert New List item moved from right to left. Thanks to derbolle and xet7 !

Closes #2772
Lauri Ojansivu 5 years ago
parent
commit
806df30ba3
1 changed files with 8 additions and 8 deletions
  1. 8 8
      client/components/swimlanes/swimlanes.jade

+ 8 - 8
client/components/swimlanes/swimlanes.jade

@@ -12,13 +12,13 @@ template(name="swimlane")
           unless currentUser.isCommentOnly
           unless currentUser.isCommentOnly
             +addListForm
             +addListForm
     else
     else
-      if currentUser.isBoardMember
-        unless currentUser.isCommentOnly
-          +addListForm
       each lists
       each lists
         +list(this)
         +list(this)
         if currentCardIsInThisList _id ../_id
         if currentCardIsInThisList _id ../_id
           +cardDetails(currentCard)
           +cardDetails(currentCard)
+      if currentUser.isBoardMember
+        unless currentUser.isCommentOnly
+          +addListForm
 
 
 template(name="listsGroup")
 template(name="listsGroup")
   .swimlane.list-group.js-lists
   .swimlane.list-group.js-lists
@@ -26,20 +26,20 @@ template(name="listsGroup")
       if currentList
       if currentList
         +list(currentList)
         +list(currentList)
       else
       else
+        each lists
+          +miniList(this)
         if currentUser.isBoardMember
         if currentUser.isBoardMember
           unless currentUser.isCommentOnly
           unless currentUser.isCommentOnly
             +addListForm
             +addListForm
-        each lists
-          +miniList(this)
     else
     else
-      if currentUser.isBoardMember
-        unless currentUser.isCommentOnly
-          +addListForm
       each lists
       each lists
         if visible this
         if visible this
           +list(this)
           +list(this)
         if currentCardIsInThisList _id null
         if currentCardIsInThisList _id null
           +cardDetails(currentCard)
           +cardDetails(currentCard)
+      if currentUser.isBoardMember
+        unless currentUser.isCommentOnly
+          +addListForm
 
 
 template(name="addListForm")
 template(name="addListForm")
   .list.list-composer.js-list-composer(class="{{#if isMiniScreen}}mini-list{{/if}}")
   .list.list-composer.js-list-composer(class="{{#if isMiniScreen}}mini-list{{/if}}")