Allow team maintainer to edit, save, or delete queries if they are the author (#2236)
This commit is contained in:
@@ -57,6 +57,7 @@ interface ITableContainerProps {
|
||||
secondarySelectActions?: IActionButtonProps[]; // TODO create table actions interface
|
||||
customControl?: () => JSX.Element;
|
||||
onSelectSingleRow?: (value: Row) => void;
|
||||
getCustomCount?: (data: any) => number;
|
||||
}
|
||||
|
||||
const baseClass = "table-container";
|
||||
@@ -99,6 +100,7 @@ const TableContainer = ({
|
||||
secondarySelectActions,
|
||||
customControl,
|
||||
onSelectSingleRow,
|
||||
getCustomCount,
|
||||
}: ITableContainerProps): JSX.Element => {
|
||||
const [searchQuery, setSearchQuery] = useState("");
|
||||
const [sortHeader, setSortHeader] = useState(defaultSortHeader || "");
|
||||
@@ -212,7 +214,7 @@ const TableContainer = ({
|
||||
resultsTitle,
|
||||
pageIndex,
|
||||
pageSize,
|
||||
data.length
|
||||
getCustomCount ? getCustomCount(data) : data.length
|
||||
)}
|
||||
</p>
|
||||
) : (
|
||||
|
||||
Reference in New Issue
Block a user