You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-07-16 00:14:34 +02:00
Desktop, Mobile: Added support for notebook icons
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
import { FolderEntity } from '../services/database/types';
|
||||
import { FolderEntity, FolderIcon } from '../services/database/types';
|
||||
import BaseModel, { DeleteOptions } from '../BaseModel';
|
||||
import time from '../time';
|
||||
import { _ } from '../locale';
|
||||
@ -666,4 +666,13 @@ export default class Folder extends BaseItem {
|
||||
return folder;
|
||||
});
|
||||
}
|
||||
|
||||
public static serializeIcon(icon: FolderIcon): string {
|
||||
return icon ? JSON.stringify(icon) : '';
|
||||
}
|
||||
|
||||
public static unserializeIcon(icon: string): FolderIcon {
|
||||
return icon ? JSON.parse(icon) : null;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user