This commit is contained in:
safwansamsudeen 2024-12-02 17:33:36 +05:30
parent 6d89ee0154
commit 440d717bc4
2 changed files with 2 additions and 3 deletions

View File

@ -6,7 +6,6 @@ const MINUTE = 'minute';
const SECOND = 'second'; const SECOND = 'second';
const MILLISECOND = 'millisecond'; const MILLISECOND = 'millisecond';
export default { export default {
parse_duration(duration) { parse_duration(duration) {
const regex = /([0-9]+)(y|m|d|h|min|s|ms)/gm; const regex = /([0-9]+)(y|m|d|h|min|s|ms)/gm;
@ -84,7 +83,7 @@ export default {
month: 'long', month: 'long',
}); });
const dateTimeFormatShort = new Intl.DateTimeFormat(lang, { const dateTimeFormatShort = new Intl.DateTimeFormat(lang, {
month: "short", month: 'short',
}); });
const month_name = dateTimeFormat.format(date); const month_name = dateTimeFormat.format(date);
const month_name_capitalized = const month_name_capitalized =

View File

@ -1167,7 +1167,7 @@ export default class Gantt {
ids = [parent_bar_id]; ids = [parent_bar_id];
} }
bars = ids.map((id) => this.get_bar(id)); bars = ids.map((id) => this.get_bar(id));
this.bar_being_dragged = parent_bar_id; this.bar_being_dragged = parent_bar_id;
bars.forEach((bar) => { bars.forEach((bar) => {