mirror of
https://github.com/wekan/wekan.git
synced 2025-12-17 07:50:12 +01:00
- 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
This commit is contained in:
parent
d2dfcf36d9
commit
4f46adc389
2 changed files with 6 additions and 1 deletions
|
|
@ -7,7 +7,8 @@ template(name="board")
|
||||||
+boardBody
|
+boardBody
|
||||||
else
|
else
|
||||||
//- XXX We need a better error message in case the board has been archived
|
//- 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
|
else
|
||||||
+spinner
|
+spinner
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,10 @@ BlazeComponent.extendComponent({
|
||||||
return Utils.isMiniScreen() && Session.get('currentCard');
|
return Utils.isMiniScreen() && Session.get('currentCard');
|
||||||
},
|
},
|
||||||
|
|
||||||
|
goHome() {
|
||||||
|
FlowRouter.go('home');
|
||||||
|
},
|
||||||
|
|
||||||
}).register('board');
|
}).register('board');
|
||||||
|
|
||||||
BlazeComponent.extendComponent({
|
BlazeComponent.extendComponent({
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue