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

Function _onSaveDescription

client/src/containers/ProjectSettings.jsx:107–123  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

105 };
106
107 const _onSaveDescription = () => {
108 setLoadingDescription(true);
109 dispatch(updateProject({ project_id: project.id, data: { description: projectDescription } }))
110 .then((resp) => {
111 setLoadingDescription(false);
112 if (resp.error) {
113 toast.error("There was a problem updating the dashboard description. Please try again.");
114 return;
115 }
116 dispatch(changeActiveProject(project.id));
117 toast.success("The description was updated successfully!");
118 })
119 .catch(() => {
120 setLoadingDescription(false);
121 toast.error("There was a problem updating the dashboard description. Please try again.");
122 });
123 };
124
125 const _onGetMachineTimezone = () => {
126 const tz = Intl.DateTimeFormat().resolvedOptions().timeZone;

Callers

nothing calls this directly

Calls 3

updateProjectFunction · 0.90
changeActiveProjectFunction · 0.90
dispatchFunction · 0.50

Tested by

no test coverage detected