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

UI: custom leaves #1833

Merged
merged 15 commits into from
Jun 5, 2024
Merged

UI: custom leaves #1833

merged 15 commits into from
Jun 5, 2024

Conversation

Shruti-Apte
Copy link
Contributor

@Shruti-Apte Shruti-Apte commented May 9, 2024

update_custom_leaves: [:id, :name, :color, :icon, :allocation_value,
:allocation_period, user_ids: [],
],
remove_custom_leaves: []
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

id is missing here IMO

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its not required here. It will accept array of ids

@nisusam
Copy link
Contributor

nisusam commented May 16, 2024

@Shruti-Apte Please resolve conflicts

@apoorv1316
Copy link
Contributor

@nisusam I've resolved conflicts. Please have another look. @Shruti-Apte Backend code was updated. Please check if everything working as expected.

CustomLeavesService.new(leave, update_params).process
render json: { notice: "Leaves updated successfully" }, status: :ok
CustomLeavesService.new(@leave, update_params).process
render json: { notice: "Custom Leaves updated successfully" }, status: :ok
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Leaves => leaves

>
{employees.map((emp, index) => (
<Fragment key={emp.value}>
<span>{emp.label}</span>{" "}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove {" "}

@apoorv1316 apoorv1316 merged commit 575667d into develop Jun 5, 2024
1 check passed
@apoorv1316 apoorv1316 deleted the UI_custom_leaves branch June 5, 2024 05:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add settings for custom leaves
3 participants