Skip to content

Commit

Permalink
fixed linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
roncodes committed Oct 30, 2023
1 parent 4a272ba commit cdadb59
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
2 changes: 1 addition & 1 deletion addon/components/notification-tray.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export default class NotificationTrayComponent extends Component {
});

// listen for notifications read
this.universe.on('notifications.read', (notifications) => {
this.universe.on('notifications.read', () => {
this.fetchNotificationsFromStore();
});

Expand Down
27 changes: 26 additions & 1 deletion addon/utils/smart-humanize.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,32 @@ export default function smartHumanize(string) {
return string;
}

const uppercase = ['api', 'vat', 'id', 'uuid', 'sku', 'ean', 'upc', 'erp', 'tms', 'wms', 'ltl', 'ftl', 'lcl', 'fcl', 'rfid', 'jot', 'roi', 'eta', 'pod', 'asn', 'oem', 'ddp', 'fob', 'gsm'];
const uppercase = [
'api',
'vat',
'id',
'uuid',
'sku',
'ean',
'upc',
'erp',
'tms',
'wms',
'ltl',
'ftl',
'lcl',
'fcl',
'rfid',
'jot',
'roi',
'eta',
'pod',
'asn',
'oem',
'ddp',
'fob',
'gsm',
];

return humanize([decamelize(string)])
.toLowerCase()
Expand Down

0 comments on commit cdadb59

Please sign in to comment.