Skip to content

Commit

Permalink
Revert useless changes
Browse files Browse the repository at this point in the history
  • Loading branch information
piitaya committed Feb 20, 2025
1 parent 4df6436 commit 0773e65
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 18 deletions.
9 changes: 0 additions & 9 deletions src/panels/lovelace/cards/hui-markdown-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,15 +232,6 @@ export class HuiMarkdownCard extends LitElement implements LovelaceCard {
ha-card {
height: 100%;
}
ha-card.no-border {
border: none;
box-shadow: none;
background: none;
padding: 0;
}
ha-card.no-border ha-markdown {
padding: 0;
}
ha-alert {
margin-bottom: 8px;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ export class HuiCreateDialogBadge
showSuggestBadgeDialog(this, {
lovelaceConfig: this._params!.lovelaceConfig,
saveConfig: this._params!.saveConfig,
path: this._params!.path,
path: this._params!.path as [number],
entities: this._selectedEntities,
badgeConfig,
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@ export class HuiDialogSuggestBadge extends LitElement {
const { viewIndex } = parseLovelaceContainerPath(path);

const newBadges = this._badgeConfig!;

return addBadges(config, [viewIndex], newBadges);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ export class HuiCreateDialogCard
showSuggestCardDialog(this, {
lovelaceConfig: this._params!.lovelaceConfig,
saveConfig: this._params!.saveConfig,
path: this._params!.path,
path: this._params!.path as [number],
entities: this._selectedEntities,
cardConfig,
sectionConfig,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import { LitElement, html } from "lit";
import { customElement, property } from "lit/decorators";
import memoizeOne from "memoize-one";
import { fireEvent } from "../../../../common/dom/fire_event";
import "../../../../components/ha-form/ha-form";
import type {
HaFormSchema,
SchemaUnion,
} from "../../../../components/ha-form/types";
import "../../../../components/ha-form/ha-form";
import type { LovelaceSectionRawConfig } from "../../../../data/lovelace/config/section";
import type { LovelaceViewConfig } from "../../../../data/lovelace/config/view";
import type { HomeAssistant } from "../../../../types";
Expand Down Expand Up @@ -43,6 +43,7 @@ export class HuiDialogEditSection extends LitElement {
const data: SettingsData = {
column_span: this.config.column_span || 1,
};

const schema = this._schema(this.viewConfig.max_columns || 4);

return html`
Expand Down
2 changes: 1 addition & 1 deletion src/panels/lovelace/views/hui-view-header.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ export class HuiViewHeader extends LitElement {
<ha-ripple></ha-ripple>
<ha-svg-icon .path=${mdiPlus}></ha-svg-icon>
${this.hass.localize(
"ui.panel.lovelace.editor.section.add_title"
"ui.panel.lovelace.editor.edit_view_header.add_title"
)}
</button>
`
Expand Down
6 changes: 2 additions & 4 deletions src/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -6556,6 +6556,7 @@
"move_to_dashboard": "Move to dashboard"
},
"edit_view_header": {
"add_title": "Add title",
"header": "Header settings",
"edit_ui": "[%key:ui::panel::lovelace::editor::edit_view::edit_ui%]",
"edit_yaml": "[%key:ui::panel::lovelace::editor::edit_view::edit_yaml%]",
Expand Down Expand Up @@ -6667,15 +6668,12 @@
"success": "View moved successfully"
},
"section": {
"add_badge": "Add badge",
"add_card": "[%key:ui::panel::lovelace::editor::edit_card::add%]",
"add_title": "Add title",
"drop_card_create_section": "Drop card here to create a new section",
"create_section": "Create section",
"default_section_title": "New section",
"imported_cards_title": "Imported cards",
"imported_cards_description": "These cards are imported from another view. They will only be displayed in edit mode. Move them into sections to display them in your view.",
"add_header": "Add header"
"imported_cards_description": "These cards are imported from another view. They will only be displayed in edit mode. Move them into sections to display them in your view."
},
"delete_section": {
"title": "Delete section",
Expand Down

0 comments on commit 0773e65

Please sign in to comment.