From 9fa5b59d7c163489c16ff51f2da546d7f8a7b760 Mon Sep 17 00:00:00 2001 From: Ben0it-T Date: Mon, 14 Mar 2022 21:46:11 +0100 Subject: [PATCH 1/2] Duplicate Board now open board --- client/components/boards/boardsList.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/client/components/boards/boardsList.js b/client/components/boards/boardsList.js index a5b1ccb51..467e5686a 100644 --- a/client/components/boards/boardsList.js +++ b/client/components/boards/boardsList.js @@ -228,6 +228,7 @@ BlazeComponent.extendComponent({ evt.preventDefault(); }, 'click .js-clone-board'(evt) { + let title = getSlug(Boards.findOne(this.currentData()._id).title) || 'cloned-board'; Meteor.call( 'copyBoard', this.currentData()._id, @@ -242,7 +243,11 @@ BlazeComponent.extendComponent({ } else { Session.set('fromBoard', null); subManager.subscribe('board', res, false); - Utils.goBoardId(res); + FlowRouter.go('board', { + id: res, + slug: title, + }); + //Utils.goBoardId(res); } }, ); From 8280ed2d3e996bfb4cc71d605c448f8fd2b88d55 Mon Sep 17 00:00:00 2001 From: Ben0it-T Date: Mon, 14 Mar 2022 22:04:38 +0100 Subject: [PATCH 2/2] Create Board from template now open board --- client/components/lists/listBody.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/components/lists/listBody.js b/client/components/lists/listBody.js index 3a368c344..069864c81 100644 --- a/client/components/lists/listBody.js +++ b/client/components/lists/listBody.js @@ -719,6 +719,10 @@ BlazeComponent.extendComponent({ (err, data) => { _id = data; subManager.subscribe('board', _id, false); + FlowRouter.go('board', { + id: _id, + slug: getSlug(element.title), + }); }, ); }