mirror of
https://github.com/fleetbase/fleetbase.git
synced 2026-01-06 14:40:12 +00:00
9 lines
256 B
JavaScript
9 lines
256 B
JavaScript
import { camelize } from '@ember/string';
|
|
|
|
export default function createNotificationKey(definition, name) {
|
|
const withoutSlashes = definition.replace(/[\W_]+/g, '');
|
|
const key = `${camelize(withoutSlashes)}__${camelize(name)}`;
|
|
|
|
return key;
|
|
}
|