Commit ad7b5885 authored by Ezekiel Kigbo's avatar Ezekiel Kigbo

Merge branch 'remove-frontend-list-title-overrides' into 'master'

Remove frontend overrides for board list title

See merge request gitlab-org/gitlab!51874
parents e0ea6962 3169b84d
import { sortBy } from 'lodash';
import { __ } from '~/locale';
import { ListType } from './constants';
import { getIdFromGraphQLId } from '~/graphql_shared/utils';
......@@ -9,15 +8,14 @@ export function getMilestone() {
export function updateListPosition(listObj) {
const { listType } = listObj;
let { position, title } = listObj;
let { position } = listObj;
if (listType === ListType.closed) {
position = Infinity;
} else if (listType === ListType.backlog) {
position = -Infinity;
title = __('Open');
}
return { ...listObj, title, position };
return { ...listObj, position };
}
export function formatBoardLists(lists) {
......
......@@ -35,7 +35,7 @@ class List {
constructor(obj) {
this.id = obj.id;
this.position = obj.position;
this.title = (obj.list_type || obj.listType) === 'backlog' ? __('Open') : obj.title;
this.title = obj.title;
this.type = obj.list_type || obj.listType;
const typeInfo = this.getTypeInfo(this.type);
......
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