mirror of
https://github.com/wekan/wekan.git
synced 2026-02-18 14:08:06 +01:00
Shared Templates. In Progress.
Part 2: - Ablity to Add Template Container, checkbox in Create Board popup. - Do not create Template Container by default, when creating user. Thanks to xet7 ! Related #3313
This commit is contained in:
parent
48dcb02328
commit
d1d4453120
3 changed files with 83 additions and 122 deletions
|
|
@ -1490,24 +1490,26 @@ if (Meteor.isServer) {
|
|||
|
||||
fakeUserId.withValue(doc._id, () => {
|
||||
/*
|
||||
// Insert the Welcome Board
|
||||
Boards.insert({
|
||||
title: TAPi18n.__('welcome-board'),
|
||||
permission: 'private',
|
||||
}, fakeUser, (err, boardId) => {
|
||||
|
||||
Swimlanes.insert({
|
||||
title: TAPi18n.__('welcome-swimlane'),
|
||||
boardId,
|
||||
sort: 1,
|
||||
}, fakeUser);
|
||||
// Insert the Welcome Board
|
||||
Boards.insert({
|
||||
title: TAPi18n.__('welcome-board'),
|
||||
permission: 'private',
|
||||
}, fakeUser, (err, boardId) => {
|
||||
|
||||
['welcome-list1', 'welcome-list2'].forEach((title, titleIndex) => {
|
||||
Lists.insert({title: TAPi18n.__(title), boardId, sort: titleIndex}, fakeUser);
|
||||
});
|
||||
});
|
||||
*/
|
||||
Swimlanes.insert({
|
||||
title: TAPi18n.__('welcome-swimlane'),
|
||||
boardId,
|
||||
sort: 1,
|
||||
}, fakeUser);
|
||||
|
||||
['welcome-list1', 'welcome-list2'].forEach((title, titleIndex) => {
|
||||
Lists.insert({title: TAPi18n.__(title), boardId, sort: titleIndex}, fakeUser);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
// Insert Template Container
|
||||
const Future = require('fibers/future');
|
||||
const future1 = new Future();
|
||||
const future2 = new Future();
|
||||
|
|
@ -1592,6 +1594,7 @@ if (Meteor.isServer) {
|
|||
future1.wait();
|
||||
future2.wait();
|
||||
future3.wait();
|
||||
*/
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue