Explorar o código

fix Import Done Button do not redirect

Ben0it-T %!s(int64=3) %!d(string=hai) anos
pai
achega
f9b6978303
Modificáronse 1 ficheiros con 6 adicións e 1 borrados
  1. 6 1
      client/components/import/import.js

+ 6 - 1
client/components/import/import.js

@@ -87,8 +87,13 @@ BlazeComponent.extendComponent({
         if (err) {
           this.setError(err.error);
         } else {
+          let title = getSlug(this.importedData.get().title) || 'imported-board';
           Session.set('fromBoard', null);
-          Utils.goBoardId(res);
+          FlowRouter.go('board', {
+            id: res,
+            slug: title,
+          })
+          //Utils.goBoardId(res);
         }
       },
     );