Parcourir la source

Automatically star new boards created with the header shortcut

Maxime Quandalle il y a 10 ans
Parent
commit
270236363a
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      client/components/boards/boardHeader.js

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

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