From f2b8eeb6f1fdf99090e27858fae01ae09635cbf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Turbelin?= Date: Sun, 5 Jan 2025 20:08:16 +0100 Subject: [PATCH] Revert "Put back permalink fields on primary details panel" This reverts commit d90ca538fb5b02e942842f1f9c1f44232f44027d. --- app/views/admin/enterprises/form/_admin_only.html.haml | 2 ++ app/views/admin/enterprises/form/_primary_details.html.haml | 2 -- app/webpacker/controllers/admin_only_controller.js | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/views/admin/enterprises/form/_admin_only.html.haml b/app/views/admin/enterprises/form/_admin_only.html.haml index e95e4615224..275e106c09d 100644 --- a/app/views/admin/enterprises/form/_admin_only.html.haml +++ b/app/views/admin/enterprises/form/_admin_only.html.haml @@ -14,6 +14,8 @@ %span{ style: "width: 30px; height: 30px;", class: "hidden", data: { "admin-only-target": "spinner" } } = render partial: "components/admin_spinner" += render partial: 'admin/enterprises/form/permalink' + .row .three.columns.alpha = f.label :external_billing_id, t('.external_billing_id') diff --git a/app/views/admin/enterprises/form/_primary_details.html.haml b/app/views/admin/enterprises/form/_primary_details.html.haml index 830cd108b4d..297263f2639 100644 --- a/app/views/admin/enterprises/form/_primary_details.html.haml +++ b/app/views/admin/enterprises/form/_primary_details.html.haml @@ -31,5 +31,3 @@ .four.columns.omega = f.radio_button :visible, "hidden", 'ng-model' => 'Enterprise.visible' = f.label :visible, t('.hidden'), value: 'hidden' - -= render partial: 'admin/enterprises/form/permalink' \ No newline at end of file diff --git a/app/webpacker/controllers/admin_only_controller.js b/app/webpacker/controllers/admin_only_controller.js index 3b1a8e86c02..beb5eae2e4a 100644 --- a/app/webpacker/controllers/admin_only_controller.js +++ b/app/webpacker/controllers/admin_only_controller.js @@ -5,6 +5,7 @@ export default class extends Controller { static targets = ["spinner"]; enterpriseSellsChanged(event) { + console.log("enterpriseSellsChanged"); if (event.currentTarget.checked) { this.enterpriseSellsValue = event.currentTarget.value; this.spinnerTarget.classList.remove("hidden");