mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-16 03:27:01 +02:00
* 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);
|