c31671ce04
* add dot-to-dash helper * fix context menu on policy page and add test for deletion * use dot-to-dash where we use confirm component * fix acceptance test
8 lines
184 B
JavaScript
8 lines
184 B
JavaScript
import { helper as buildHelper } from '@ember/component/helper';
|
|
|
|
export function dotToDash([string]) {
|
|
return string.replace(/\./gi, '-');
|
|
}
|
|
|
|
export default buildHelper(dotToDash);
|