1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-12-02 22:49:09 +02:00

Done Welcome integration on mobile and CLI

This commit is contained in:
Laurent Cozic
2019-02-09 19:04:34 +00:00
parent 214eae27da
commit 434037d793
6 changed files with 22 additions and 26 deletions

View File

@@ -22,11 +22,6 @@ class WelcomeUtils {
const folderAssets = welcomeAssets.folders;
const tempDir = Setting.value('resourceDir');
// TODO: Update mobile root.js
// TODO: Update CLI
// TODO: Test CLI
// TODO: Use less tags?
for (let i = 0; i < folderAssets.length; i++) {
const folderAsset = folderAssets[i];
const folderId = folderAsset.id;
@@ -104,6 +99,20 @@ class WelcomeUtils {
return output;
}
static async install(dispatch) {
if (!Setting.value('welcome.wasBuilt')) {
const result = await WelcomeUtils.createWelcomeItems();
Setting.setValue('welcome.wasBuilt', true);
dispatch({
type: 'FOLDER_SELECT',
id: result.defaultFolderId,
});
Setting.setValue('activeFolderId', result.defaultFolderId);
}
}
}
module.exports = WelcomeUtils;