MCPcopy Index your code
hub / github.com/chartbrew/chartbrew / _onSaveTimezone

Function _onSaveTimezone

client/src/containers/ProjectSettings.jsx:93–105  ·  view source on GitHub ↗
(clear)

Source from the content-addressed store, hash-verified

91 };
92
93 const _onSaveTimezone = (clear) => {
94 setLoadingTimezone(true);
95 dispatch(updateProject({ project_id: project.id, data: { timezone: clear ? "" : projectTimezone } }))
96 .then(() => {
97 setProjectTimezone("");
98 setLoadingTimezone(false);
99 dispatch(changeActiveProject(project.id));
100 toast.success("The timezone was updated successfully!");
101 })
102 .catch(() => {
103 setLoadingTimezone(false);
104 });
105 };
106
107 const _onSaveDescription = () => {
108 setLoadingDescription(true);

Callers 1

ProjectSettingsFunction · 0.85

Calls 3

updateProjectFunction · 0.90
changeActiveProjectFunction · 0.90
dispatchFunction · 0.50

Tested by

no test coverage detected