mirror of
https://github.com/grafana/grafana.git
synced 2025-09-18 00:43:29 +08:00

* wip * wip * wip * wip * scope e2es * wip * wip * wip * wip * wip * wip * wip * wip * add dashboard view tests * mods cujs * wip refactor * remove timeouts * fixes * betterer * fixes * refactor * refactor * fix * use type instead of any * betterer * PR mods + codeowners * CODEOWNERS * readme lint
12 lines
304 B
TypeScript
12 lines
304 B
TypeScript
export const setDashboardUIDs = (uids: string[]) => {
|
|
process.env.DASHBOARD_UIDS = JSON.stringify(uids);
|
|
};
|
|
|
|
export const getDashboardUIDs = (): string[] => {
|
|
return JSON.parse(process.env.DASHBOARD_UIDS || '[]');
|
|
};
|
|
|
|
export const clearDashboardUIDs = () => {
|
|
delete process.env.DASHBOARD_UIDS;
|
|
};
|