Skip to content

Commit

Permalink
Fix imports of ES modules
Browse files Browse the repository at this point in the history
In some Rails apps the relative paths do not work.
  • Loading branch information
tvdeyen committed Jan 10, 2024
1 parent cd558d2 commit cfe2983
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/javascript/alchemy_admin/components/button.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Spinner from "../spinner"
import Spinner from "alchemy_admin/spinner"

class Button extends HTMLButtonElement {
connectedCallback() {
Expand Down
4 changes: 2 additions & 2 deletions app/javascript/alchemy_admin/components/element_editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import fileEditors from "alchemy_admin/file_editors"
import pictureEditors from "alchemy_admin/picture_editors"
import IngredientAnchorLink from "alchemy_admin/ingredient_anchor_link"
import { post } from "alchemy_admin/utils/ajax"
import { createHtmlElement } from "../utils/dom_helpers"
import { createHtmlElement } from "alchemy_admin/utils/dom_helpers"

import "./element_editor/publish_element_button"
import "alchemy_admin/components/element_editor/publish_element_button"

export class ElementEditor extends HTMLElement {
constructor() {
Expand Down

0 comments on commit cfe2983

Please sign in to comment.