UNPKG
@myorders/fleetops-engine
Version:
latest (0.0.10)
0.0.10
0.0.9
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
Fleet & Transport Management Extension for Myorders
github.com/myorders/fleetops
myorders/fleetops
@myorders/fleetops-engine
/
addon
/
helpers
/
flow-raw-status.js
14 lines
(10 loc)
•
299 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { helper } from
'@ember/component/helper'
; export default helper(
function
flowRawStatus
([status])
{
if
(!
status
|| typeof
status
!==
'string'
) {
return
''
; }
if
(
status
.includes(
'|'
)) {
return
status
.slice(
status
.indexOf(
'|'
) +
1
); }
return
status
; });