File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
frontend/src/stimulus/controllers/dynamic
modules/overviews/app/components/overviews/project_custom_fields
spec/support/pages/projects Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 3131
3232import { Controller } from '@hotwired/stimulus' ;
3333
34- export default class ProjectCustomFieldEditController extends Controller {
34+ export default class ProjectCustomFieldModalController extends Controller {
3535 static values = {
3636 url : { type : String } ,
3737 } ;
Original file line number Diff line number Diff line change @@ -67,13 +67,13 @@ def editable_wrapper
6767 tag : :div ,
6868 classes : "project-custom-field-clickable" ,
6969 data : {
70- controller : "project-custom-field-edit async-dialog" ,
71- "project-custom-field-edit -url-value" : edit_project_custom_field_path ( project_id : @project . id ,
70+ controller : "project-custom-field-modal async-dialog" ,
71+ "project-custom-field-modal -url-value" : edit_project_custom_field_path ( project_id : @project . id ,
7272 id : @project_custom_field . id ) ,
73- action : "click->project-custom-field-edit #openEditDialog " \
74- "keydown.enter->project-custom-field-edit #openEditDialog " \
75- "keydown.space->project-custom-field-edit #openEditDialog " \
76- "project-custom-field-edit :open-dialog->async-dialog#handleOpenDialog"
73+ action : "click->project-custom-field-modal #openEditDialog " \
74+ "keydown.enter->project-custom-field-modal #openEditDialog " \
75+ "keydown.space->project-custom-field-modal #openEditDialog " \
76+ "project-custom-field-modal :open-dialog->async-dialog#handleOpenDialog"
7777 } ,
7878 aria : {
7979 label : [
@@ -83,7 +83,7 @@ def editable_wrapper
8383 } ,
8484 role : "button" ,
8585 tabindex : 0 ,
86- test_selector : "project-custom-field-edit -button-#{ @project_custom_field . id } "
86+ test_selector : "project-custom-field-modal -button-#{ @project_custom_field . id } "
8787 )
8888 end
8989
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ def open_edit_dialog_for_custom_field(custom_field)
9393 # Once we create the project custom field inline editing, this can be reverted to a normal
9494 # capybara click method call.
9595 page . execute_script (
96- "document.querySelector('[data-test-selector=\" project-custom-field-edit -button-#{ custom_field . id } \" ]').click()"
96+ "document.querySelector('[data-test-selector=\" project-custom-field-modal -button-#{ custom_field . id } \" ]').click()"
9797 )
9898 end
9999
You can’t perform that action at this time.
0 commit comments