mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-14 16:44:07 -08:00
de04c93f2c
Co-authored-by: Alex Grozav <alex@grozav.com>
10 lines
268 B
TypeScript
10 lines
268 B
TypeScript
import { nanoid } from 'nanoid';
|
|
|
|
export function getUniqueWorkflowName(workflowNamePrefix?: string) {
|
|
return workflowNamePrefix ? `${workflowNamePrefix} ${nanoid(12)}` : nanoid(12);
|
|
}
|
|
|
|
export function isCanvasV2() {
|
|
return Cypress.env('NODE_VIEW_VERSION') === 2;
|
|
}
|