open-vault/ui/app/helpers/dot-to-dash.js
Matthew Irish c31671ce04
Bug fix - ui context menu (#6018)
* 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
2019-01-09 12:30:19 -06:00

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);