From aadb6582775e7fab3ae15573aa093856ae8107c6 Mon Sep 17 00:00:00 2001 From: stephann <3025661+stephannv@users.noreply.github.com> Date: Tue, 12 Nov 2024 09:18:32 -0300 Subject: [PATCH] Fix AlertDialog controller reference --- .devcontainer/devcontainer.json | 4 ++-- lib/ruby_ui/alert_dialog/alert_dialog_content.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 19e3004a..0d58ecce 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,7 +1,7 @@ // For format details, see https://aka.ms/devcontainer.json. For config options, see the // README at: https://github.com/devcontainers/templates/tree/main/src/ruby { - "name": "RbUI", + "name": "RubyUI", // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile "image": "ghcr.io/rails/devcontainer/images/ruby:3.3.3", // Features to add to the dev container. More info: https://containers.dev/features. @@ -30,4 +30,4 @@ // "customizations": {}, // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. // "remoteUser": "root" -} \ No newline at end of file +} diff --git a/lib/ruby_ui/alert_dialog/alert_dialog_content.rb b/lib/ruby_ui/alert_dialog/alert_dialog_content.rb index 907c8f27..97c4af60 100644 --- a/lib/ruby_ui/alert_dialog/alert_dialog_content.rb +++ b/lib/ruby_ui/alert_dialog/alert_dialog_content.rb @@ -4,7 +4,7 @@ module RubyUI class AlertDialogContent < Base def view_template(&block) template(**attrs) do - div(data: {controller: "rbui--alert-dialog"}) do + div(data: {controller: "ruby-ui--alert-dialog"}) do background container(&block) end