mirror of
https://github.com/koalyptus/TableFilter.git
synced 2026-03-16 15:45:45 +01:00
Addressed PR feedback
This commit is contained in:
parent
e19fc2839e
commit
0f0ea9f2c4
9 changed files with 14 additions and 13 deletions
|
|
@ -2,6 +2,7 @@ import {Date as SugarDate} from 'sugar-date';
|
|||
import 'sugar-date/locales';
|
||||
import {Feature} from '../feature';
|
||||
import {isObj, isArray} from '../types';
|
||||
import {DATE} from '../const';
|
||||
|
||||
/**
|
||||
* Wrapper for Sugar Date module providing datetime helpers and locales
|
||||
|
|
@ -101,7 +102,7 @@ export class DateType extends Feature {
|
|||
addConfigFormats(types=[]) {
|
||||
types.forEach((type, idx) => {
|
||||
let options = this.getOptions(idx, types);
|
||||
if (options.hasOwnProperty('format')) {
|
||||
if (options.type === DATE && options.hasOwnProperty('format')) {
|
||||
let locale = this.datetime.getLocale(
|
||||
options.locale || this.locale
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue