You've already forked joplin
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:
@@ -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;
|
||||
Reference in New Issue
Block a user