2
0
mirror of https://github.com/status-im/consul.git synced 2025-01-31 16:07:58 +00:00
Kenia 191496e4a5 ui: Create a helper to show the last 8 characters of token Accessor ID ()
* Create substr helper
* Create a test for the new substr helper
* Display the last 8 characters of token Accessor ID in the Token lists page
2020-05-12 17:14:07 +00:00

6 lines
168 B
JavaScript

import { helper } from '@ember/component/helper';
export default helper(function substr([str = '', start = 0, length], hash) {
return str.substr(start, length);
});