Skip to content

Add delete card func#2116

Merged
balloob merged 4 commits intodevfrom
delete-card
Nov 28, 2018
Merged

Add delete card func#2116
balloob merged 4 commits intodevfrom
delete-card

Conversation

@bramkragten
Copy link
Copy Markdown
Member

Closes: #1957

@ghost ghost assigned bramkragten Nov 26, 2018
@ghost ghost added the in progress label Nov 26, 2018
this.hass!,
this.cardConfig!,
() => fireEvent(this, "config-refresh"),
() => this._editCard()
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes no sense, can better check for an ID before calling delete

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, disable button when no ID and wrap it in a tooltip saying "Card has no ID"

Copy link
Copy Markdown
Member Author

@bramkragten bramkragten Nov 26, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or show the migrate dialog, like this._editCard() does?

@balloob balloob merged commit 7a0b206 into dev Nov 28, 2018
@delete-merged-branch delete-merged-branch bot deleted the delete-card branch November 28, 2018 11:34
@ghost ghost removed the in progress label Nov 28, 2018
@balloob balloob mentioned this pull request Dec 5, 2018
@github-actions github-actions bot locked and limited conversation to collaborators Jul 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow deletion of LL cards

3 participants