Skip to content

Commit

Permalink
[SDAN-572] Label completed agenda items as 'Completed' (#829)
Browse files Browse the repository at this point in the history
  • Loading branch information
nrvikas authored and MarkLark86 committed Aug 20, 2019
1 parent 82ab57b commit 551557b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions assets/agenda/components/AgendaListItemLabels.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from 'react';
import PropTypes from 'prop-types';
import moment from 'moment';
import classNames from 'classnames';
import {get} from 'lodash';

import {isPostponed, isRescheduled, isCanceled} from '../utils';
import {DATE_FORMAT, formatDate} from 'utils';
Expand All @@ -22,6 +23,10 @@ function AgendaListItemLabels({item, withDate, group, right}) {
labelText = gettext('rescheduled');
}

if (get(item, 'event.completed')) {
labelText = gettext('completed');
}

if (!labelText) {
return null;
}
Expand Down

0 comments on commit 551557b

Please sign in to comment.