Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed User Default View in Resource and Shifting #9306

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/components/Resource/ResourceBoard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ const COMPLETED = ["COMPLETED", "REJECTED"];
const ACTIVE = resourceStatusOptions.filter((o) => !COMPLETED.includes(o));

export default function BoardView() {
localStorage.setItem("defaultResourceView", "board");
nithish1018 marked this conversation as resolved.
Show resolved Hide resolved
const { qParams, FilterBadges, advancedFilter, updateQuery } = useFilters({
limit: -1,
cacheBlacklist: ["title"],
Expand Down
1 change: 1 addition & 0 deletions src/components/Resource/ResourceList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import useQuery from "@/Utils/request/useQuery";
import { formatDateTime } from "@/Utils/utils";

export default function ListView() {
localStorage.setItem("defaultResourceView", "list");
nithish1018 marked this conversation as resolved.
Show resolved Hide resolved
const {
qParams,
Pagination,
Expand Down
1 change: 1 addition & 0 deletions src/components/Shifting/ShiftingBoard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ const KanbanBoard = lazy(
) as KanbanBoardType;

export default function BoardView() {
localStorage.setItem("defaultShiftView", "board");
nithish1018 marked this conversation as resolved.
Show resolved Hide resolved
const { qParams, updateQuery, FilterBadges, advancedFilter } = useFilters({
limit: -1,
cacheBlacklist: ["patient_name"],
Expand Down
1 change: 1 addition & 0 deletions src/components/Shifting/ShiftingList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import useQuery from "@/Utils/request/useQuery";
import ShiftingTable from "./ShiftingTable";

export default function ListView() {
localStorage.setItem("defaultShiftView", "list");
nithish1018 marked this conversation as resolved.
Show resolved Hide resolved
const {
qParams,
updateQuery,
Expand Down
Loading