Commit 128be7d9 authored by Lukas Eipert's avatar Lukas Eipert

Respect absolute date user setting in MR widget

The MR Widget is not respecting the absolute date user setting because
it utilizes `timeago.js` directly rather than our timeago utility
function. Adjusting it to use our utility fixes it.
parent 21eeed07
import { format } from 'timeago.js';
import getStateKey from 'ee_else_ce/vue_merge_request_widget/stores/get_state_key';
import { statusBoxState } from '~/issuable/components/status_box.vue';
import { formatDate } from '../../lib/utils/datetime_utility';
import { formatDate, getTimeago } from '~/lib/utils/datetime_utility';
import { MTWPS_MERGE_STRATEGY, MT_MERGE_STRATEGY, MWPS_MERGE_STRATEGY } from '../constants';
import { stateKey } from './state_maps';
const { format } = getTimeago();
export default class MergeRequestStore {
constructor(data) {
this.sha = data.diff_head_sha;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment