瀏覽代碼

- If board does not exist, redirect to All Boards page, at all Wekan platforms.
So now at Sandstorm when loading Wekan grain, if first Sandstorm board is found,
it is opened. If first Sandstorm board is not found (it's deleted or archived),
then redirect automatically to All Boards page.

Closes #3132

Lauri Ojansivu 6 年之前
父節點
當前提交
4f46adc389
共有 2 個文件被更改,包括 6 次插入1 次删除
  1. 2 1
      client/components/boards/boardBody.jade
  2. 4 0
      client/components/boards/boardBody.js

+ 2 - 1
client/components/boards/boardBody.jade

@@ -7,7 +7,8 @@ template(name="board")
         +boardBody
     else
       //- XXX We need a better error message in case the board has been archived
-      +message(label="board-not-found")
+      //+message(label="board-not-found")
+      {{goHome}}
   else
     +spinner
 

+ 4 - 0
client/components/boards/boardBody.js

@@ -27,6 +27,10 @@ BlazeComponent.extendComponent({
     return Utils.isMiniScreen() && Session.get('currentCard');
   },
 
+  goHome() {
+    FlowRouter.go('home');
+  },
+
 }).register('board');
 
 BlazeComponent.extendComponent({