mirror of
https://github.com/fsolla/teqo.git
synced 2026-12-04 23:33:06 +00:00
Give B29's leadership columns their B17 labels.
The rebase landed B29's sort/filter heads on /campanha/liderancas next to B17's now-required `label`, and the two do not substitute for each other: B17 dropped heads that only restated a label, but these carry the sort and filter controls, so both sides survive on the same column. `updatedAt` is new from B29 and had no label at all. The four sortable ones read from `leadershipListSortLabels` rather than repeating the string, which is the treatment B17 already gave municípios and dobradinhas — the picker's label and the sort summary cannot drift now.
This commit is contained in:
parent
155f6492d9
commit
8bf872142b
1 changed files with 5 additions and 3 deletions
|
|
@ -59,6 +59,7 @@ import {
|
||||||
import {
|
import {
|
||||||
buildLeadershipListHref,
|
buildLeadershipListHref,
|
||||||
formatLeadershipListSortSummary,
|
formatLeadershipListSortSummary,
|
||||||
|
leadershipListSortLabels,
|
||||||
resolveLeadershipListSort,
|
resolveLeadershipListSort,
|
||||||
resolveLeadershipListUrl,
|
resolveLeadershipListUrl,
|
||||||
type LeadershipListState,
|
type LeadershipListState,
|
||||||
|
|
@ -126,7 +127,7 @@ const leadershipColumns = ({
|
||||||
}): Array<CampaignTableColumn<LeadershipRowViewModel>> => [
|
}): Array<CampaignTableColumn<LeadershipRowViewModel>> => [
|
||||||
{
|
{
|
||||||
id: 'name',
|
id: 'name',
|
||||||
label: 'Nome',
|
label: leadershipListSortLabels.name,
|
||||||
mandatory: true,
|
mandatory: true,
|
||||||
head: (
|
head: (
|
||||||
<LeadershipSortableHead state={state} sortKey="name">
|
<LeadershipSortableHead state={state} sortKey="name">
|
||||||
|
|
@ -162,7 +163,7 @@ const leadershipColumns = ({
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'supportStatus',
|
id: 'supportStatus',
|
||||||
label: 'Status',
|
label: leadershipListSortLabels.supportStatus,
|
||||||
head: (
|
head: (
|
||||||
<LeadershipSortableHead state={state} sortKey="supportStatus" filterParam="supportStatus">
|
<LeadershipSortableHead state={state} sortKey="supportStatus" filterParam="supportStatus">
|
||||||
Status
|
Status
|
||||||
|
|
@ -174,7 +175,7 @@ const leadershipColumns = ({
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'sector',
|
id: 'sector',
|
||||||
label: 'Setor',
|
label: leadershipListSortLabels.sector,
|
||||||
head: (
|
head: (
|
||||||
<LeadershipSortableHead state={state} sortKey="sector" filterParam="sector">
|
<LeadershipSortableHead state={state} sortKey="sector" filterParam="sector">
|
||||||
Setor
|
Setor
|
||||||
|
|
@ -256,6 +257,7 @@ const leadershipColumns = ({
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'updatedAt',
|
id: 'updatedAt',
|
||||||
|
label: leadershipListSortLabels.updatedAt,
|
||||||
head: (
|
head: (
|
||||||
<LeadershipSortableHead state={state} sortKey="updatedAt">
|
<LeadershipSortableHead state={state} sortKey="updatedAt">
|
||||||
Última atualização
|
Última atualização
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue