Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Fix typo on Stimulus RefreshOnFormChangesController

Aaron Contrerasdd0f65500acc
diff --git a/frontend/src/stimulus/controllers/refresh-on-from-changes.controller.ts b/frontend/src/stimulus/controllers/refresh-on-form-changes.controller.ts
similarity index 96%
rename from frontend/src/stimulus/controllers/refresh-on-from-changes.controller.ts
rename to frontend/src/stimulus/controllers/refresh-on-form-changes.controller.ts
index 922968ad4f4..43ad1ec3de4 100644
--- a/frontend/src/stimulus/controllers/refresh-on-from-changes.controller.ts
+++ b/frontend/src/stimulus/controllers/refresh-on-form-changes.controller.ts
@@ -30,7 +30,7 @@
import { ApplicationController } from 'stimulus-use';
-export default class RefreshOnFromChangesController extends ApplicationController {
+export default class RefreshOnFormChangesController extends ApplicationController {
static targets = [
'form',
];
diff --git a/frontend/src/stimulus/setup.ts b/frontend/src/stimulus/setup.ts
index e31f917cef4..bfca0612ba4 100644
--- a/frontend/src/stimulus/setup.ts
+++ b/frontend/src/stimulus/setup.ts
@@ -1,10 +1,10 @@
import { Application } from '@hotwired/stimulus';
import { environment } from '../environments/environment';
import { OpApplicationController } from './controllers/op-application.controller';
+import MainMenuController from './controllers/dynamic/menus/main.controller';
import OpDisableWhenCheckedController from './controllers/disable-when-checked.controller';
import PrintController from './controllers/print.controller';
-import RefreshOnFromChangesController from './controllers/refresh-on-from-changes.controller';
-import MainMenuController from './controllers/dynamic/menus/main.controller';
+import RefreshOnFormChangesController from './controllers/refresh-on-form-changes.controller';
declare global {
interface Window {
@@ -25,4 +25,4 @@ instance.register('menus--main', MainMenuController);
instance.register('disable-when-checked', OpDisableWhenCheckedController);
instance.register('print', PrintController);
-instance.register('refresh-on-form-changes', RefreshOnFromChangesController);
+instance.register('refresh-on-form-changes', RefreshOnFormChangesController);