forked from github/plane
chore: start date option added in spreadsheet view (#1824)
This commit is contained in:
parent
a3d99100ee
commit
5f5790ebf9
@ -12,6 +12,7 @@ import {
|
|||||||
ViewEstimateSelect,
|
ViewEstimateSelect,
|
||||||
ViewIssueLabel,
|
ViewIssueLabel,
|
||||||
ViewPrioritySelect,
|
ViewPrioritySelect,
|
||||||
|
ViewStartDateSelect,
|
||||||
ViewStateSelect,
|
ViewStateSelect,
|
||||||
} from "components/issues";
|
} from "components/issues";
|
||||||
import { Popover2 } from "@blueprintjs/popover2";
|
import { Popover2 } from "@blueprintjs/popover2";
|
||||||
@ -315,6 +316,19 @@ export const SingleSpreadsheetIssue: React.FC<Props> = ({
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
{properties.start_date && (
|
||||||
|
<div className="flex items-center text-xs text-custom-text-200 text-center p-2 group-hover:bg-custom-background-80 border-custom-border-200">
|
||||||
|
<ViewStartDateSelect
|
||||||
|
issue={issue}
|
||||||
|
partialUpdateIssue={partialUpdateIssue}
|
||||||
|
tooltipPosition={tooltipPosition}
|
||||||
|
noBorder
|
||||||
|
user={user}
|
||||||
|
isNotAllowed={isNotAllowed}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
|
||||||
{properties.due_date && (
|
{properties.due_date && (
|
||||||
<div className="flex items-center text-xs text-custom-text-200 text-center p-2 group-hover:bg-custom-background-80 border-custom-border-200">
|
<div className="flex items-center text-xs text-custom-text-200 text-center p-2 group-hover:bg-custom-background-80 border-custom-border-200">
|
||||||
<ViewDueDateSelect
|
<ViewDueDateSelect
|
||||||
|
@ -45,7 +45,7 @@ export const ViewStartDateSelect: React.FC<Props> = ({
|
|||||||
>
|
>
|
||||||
<div className="group flex-shrink-0 relative max-w-[6.5rem]">
|
<div className="group flex-shrink-0 relative max-w-[6.5rem]">
|
||||||
<CustomDatePicker
|
<CustomDatePicker
|
||||||
placeholder="Due date"
|
placeholder="Start date"
|
||||||
value={issue?.start_date}
|
value={issue?.start_date}
|
||||||
onChange={(val) => {
|
onChange={(val) => {
|
||||||
partialUpdateIssue(
|
partialUpdateIssue(
|
||||||
|
@ -43,6 +43,14 @@ export const SPREADSHEET_COLUMN = [
|
|||||||
ascendingOrder: "labels__name",
|
ascendingOrder: "labels__name",
|
||||||
descendingOrder: "-labels__name",
|
descendingOrder: "-labels__name",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
propertyName: "start_date",
|
||||||
|
colName: "Start Date",
|
||||||
|
colSize: "128px",
|
||||||
|
icon: CalendarDaysIcon,
|
||||||
|
ascendingOrder: "-start_date",
|
||||||
|
descendingOrder: "start_date",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
propertyName: "due_date",
|
propertyName: "due_date",
|
||||||
colName: "Due Date",
|
colName: "Due Date",
|
||||||
|
Loading…
Reference in New Issue
Block a user