rez-table-listing-mui 1.3.34 → 1.3.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rez-table-listing-mui",
3
- "version": "1.3.34",
3
+ "version": "1.3.35",
4
4
  "type": "module",
5
5
  "description": "A rez table listing component built on TanStack Table",
6
6
  "main": "dist/index.js",
@@ -67,7 +67,7 @@ const FilterForm = ({
67
67
  filterComponentOptions?.tabOptions?.mainFilter?.customButtons;
68
68
 
69
69
  const filterName = filterMaster?.saved_filters?.selectedName || "";
70
-
70
+ const isOwner = filterMaster?.saved_filters?.is_owner || false;
71
71
  const defaultValues = useMemo(() => {
72
72
  const filterValues = filters?.reduce((acc, curr) => {
73
73
  if (curr?.filter_attribute_name) {
@@ -252,16 +252,18 @@ const FilterForm = ({
252
252
  />
253
253
  )}
254
254
  />
255
- <Box onClick={(e) => e.stopPropagation()}>
256
- {/* <IconButton
257
- size="small"
258
- onClick={() =>
259
- setDeleteFilterModalOpen && setDeleteFilterModalOpen(true)
260
- }
261
- >
262
- <DeleteIcon />
263
- </IconButton> */}
264
- </Box>
255
+ {isOwner && (
256
+ <Box onClick={(e) => e.stopPropagation()}>
257
+ <IconButton
258
+ size="small"
259
+ onClick={() =>
260
+ setDeleteFilterModalOpen && setDeleteFilterModalOpen(true)
261
+ }
262
+ >
263
+ <DeleteIcon />
264
+ </IconButton>
265
+ </Box>
266
+ )}
265
267
  </Box>
266
268
  )}
267
269