Explorar o código

Automatically star new boards created with the header shortcut

Maxime Quandalle %!s(int64=10) %!d(string=hai) anos
pai
achega
270236363a
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      client/components/boards/boardHeader.js

+ 3 - 0
client/components/boards/boardHeader.js

@@ -134,6 +134,9 @@ BlazeComponent.extendComponent({
     });
     });
 
 
     Utils.goBoardId(boardId);
     Utils.goBoardId(boardId);
+
+    // Immediately star boards crated with the headerbar popup.
+    Meteor.user().toggleBoardStar(boardId);
   },
   },
 
 
   events: function() {
   events: function() {