Skip to content

Commit

Permalink
Revert "Put back permalink fields on primary details panel"
Browse files Browse the repository at this point in the history
This reverts commit d90ca53.
  • Loading branch information
pacodelaluna committed Jan 5, 2025
1 parent 7296c0b commit f2b8eeb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions app/views/admin/enterprises/form/_admin_only.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
2 changes: 0 additions & 2 deletions app/views/admin/enterprises/form/_primary_details.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
1 change: 1 addition & 0 deletions app/webpacker/controllers/admin_only_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit f2b8eeb

Please sign in to comment.