summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2019-06-21 20:09:18 +0300
committerLauri Ojansivu <x@xet7.org>2019-06-21 20:09:18 +0300
commit4f46adc389126597266d71110f9754841f86857c (patch)
tree0b2fe5926a768e24428e372bcdee78acf82b4956
parentd2dfcf36d94aa704ce0af6b849661cea885ab64b (diff)
downloadwekan-4f46adc389126597266d71110f9754841f86857c.tar.gz
wekan-4f46adc389126597266d71110f9754841f86857c.tar.bz2
wekan-4f46adc389126597266d71110f9754841f86857c.zip
- 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
-rw-r--r--client/components/boards/boardBody.jade3
-rw-r--r--client/components/boards/boardBody.js4
2 files changed, 6 insertions, 1 deletions
diff --git a/client/components/boards/boardBody.jade b/client/components/boards/boardBody.jade
index 017d0b0a..7a811dbb 100644
--- a/client/components/boards/boardBody.jade
+++ b/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
diff --git a/client/components/boards/boardBody.js b/client/components/boards/boardBody.js
index dc5e0ede..e9b9f88a 100644
--- a/client/components/boards/boardBody.js
+++ b/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({