Skip to content

Commit

Permalink
refactor: rename UI component
Browse files Browse the repository at this point in the history
  • Loading branch information
jcdcdev committed Jun 6, 2024
1 parent b2db7e0 commit 73a7e27
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {UMB_ACTION_EVENT_CONTEXT} from "@umbraco-cms/backoffice/action";
import {UmbRequestReloadStructureForEntityEvent} from "@umbraco-cms/backoffice/entity-action";

@customElement('reading-time-property-editor-ui')
export default class MySuggestionsPropertyEditorUIElement extends UmbElementMixin(LitElement) implements UmbPropertyEditorUiElement {
export default class ReadingTimePropertyEditorUi extends UmbElementMixin(LitElement) implements UmbPropertyEditorUiElement {

@property({type: String})
public value = "";
Expand Down Expand Up @@ -44,7 +44,7 @@ export default class MySuggestionsPropertyEditorUIElement extends UmbElementMixi
align-items: center;
}
.icon{
.icon {
margin-right: 5px;
}
`]
Expand All @@ -61,7 +61,7 @@ export default class MySuggestionsPropertyEditorUIElement extends UmbElementMixi
});

this.consumeContext(UMB_ACTION_EVENT_CONTEXT, (context) => {
context.addEventListener(UmbRequestReloadStructureForEntityEvent.TYPE, (e) => {
context.addEventListener(UmbRequestReloadStructureForEntityEvent.TYPE, () => {
if (!this.initialised) {
return;
}
Expand Down Expand Up @@ -169,6 +169,6 @@ export default class MySuggestionsPropertyEditorUIElement extends UmbElementMixi

declare global {
interface HTMLElementTagNameMap {
'reading-time-property-editor-ui': MySuggestionsPropertyEditorUIElement;
'reading-time-property-editor-ui': ReadingTimePropertyEditorUi;
}
}

0 comments on commit 73a7e27

Please sign in to comment.