mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 07:20:12 +01:00
Import boards in Sandstorm
This commit is contained in:
parent
f34ef01de9
commit
d2b1a837e6
8 changed files with 29 additions and 4 deletions
|
|
@ -15,6 +15,8 @@ template(name="importTextarea")
|
|||
p: label(for='import-textarea') {{_ instruction}}
|
||||
textarea.js-import-json(placeholder="{{_ 'import-json-placeholder'}}" autofocus)
|
||||
| {{jsonText}}
|
||||
if isSandstorm
|
||||
p.warning {{_ 'import-sandstorm-warning'}}
|
||||
input.primary.wide(type="submit" value="{{_ 'import'}}")
|
||||
|
||||
template(name="importMapMembers")
|
||||
|
|
|
|||
|
|
@ -68,10 +68,12 @@ BlazeComponent.extendComponent({
|
|||
this.importedData.get(),
|
||||
additionalData,
|
||||
this.importSource,
|
||||
Session.get('fromBoard'),
|
||||
(err, res) => {
|
||||
if (err) {
|
||||
this.setError(err.error);
|
||||
} else {
|
||||
Session.set('fromBoard', null);
|
||||
Utils.goBoardId(res);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue