Commit 3169b84d authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Remove frontend overrides for Board list title

We now fixed the title in the backend with
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/51562
so the frontend does not need to override "Backlog" with "Open"
parent 0daff5ee
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