Skip to content

Commit

Permalink
improve available actions for cards (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
piitaya authored Feb 5, 2022
1 parent d20d95c commit cc9edf0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion src/cards/entity-card/entity-card-editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,15 @@ import {
entityCardConfigStruct,
INFOS,
} from "./entity-card-config";
const actions = ["more-info", "navigate", "url", "call-service", "none"];

const actions = [
"toggle",
"more-info",
"navigate",
"url",
"call-service",
"none",
];

@customElement(ENTITY_CARD_EDITOR_NAME)
export class EntityCardEditor extends LitElement implements LovelaceCardEditor {
Expand Down
2 changes: 1 addition & 1 deletion src/cards/template-card/template-card-editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
templateCardConfigStruct,
} from "./template-card-config";

const actions = ["more-info", "navigate", "url", "call-service", "none"];
const actions = ["navigate", "url", "call-service", "none"];

@customElement(TEMPLATE_CARD_EDITOR_NAME)
export class TemplateCardEditor
Expand Down

0 comments on commit cc9edf0

Please sign in to comment.