1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-24 23:26:50 +02:00

Desktop: Allow customising application layout

This commit is contained in:
Laurent Cozic
2020-11-13 17:09:28 +00:00
parent 17d835d694
commit 67f0739d3c
222 changed files with 7967 additions and 1810 deletions

View File

@ -1,8 +1,8 @@
import uuid from '../../../uuid';
import Plugin from '../Plugin';
export type ViewHandle = string;
export default function createViewHandle(plugin: Plugin): ViewHandle {
return `plugin-view-${plugin.id}-${uuid.createNano()}`;
export default function createViewHandle(plugin: Plugin, id: string): ViewHandle {
if (!id) throw new Error('A view ID must be provided');
return `plugin-view-${plugin.id}-${id}`;
}