diff --git a/README.md b/README.md index 519c1d0..8f6d171 100644 --- a/README.md +++ b/README.md @@ -48,6 +48,7 @@ views: | show_track_button | bool | **Optional** | `true` | Show track (complete) button | show_empty | bool | **Optional** | `true` | Set to false to hide card when no items | show_create_task | bool | **Optional** | `false` | Set to true to show ability to add a task in Grocy directly from the card. +| browser_mod | bool | **Optional** | `false` | Set to true _if you have installed [browser_mod](https://github.com/thomasloven/hass-browser_mod)_ and want feedback when tracking, in the form of a native toast bar. ## Advanced options It is possible to translate the following English strings in the card to whatever you like. @@ -66,6 +67,7 @@ custom_translation: 'Add task': "Lägg till" 'Optional due date/time': "Valfritt datum/tid" "'Name' can't be empty": "Fyll i namn" + Tracked: "Färdigställt" ``` ## How to get the correct user id? diff --git a/grocy-chores-card.js b/grocy-chores-card.js index 3ee9b68..e26d67c 100644 --- a/grocy-chores-card.js +++ b/grocy-chores-card.js @@ -6,7 +6,7 @@ import { html, LitElement } from "https://unpkg.com/lit?module"; } static getStubConfig() { - return { entity: "sensor.grocy_chores", title: null, show_quantity: null, show_days: null, show_assigned: true, show_last_tracked: true, show_last_tracked_by: true, show_track_button: true } + return { entity: "sensor.grocy_chores", title: null, show_quantity: null, show_days: null, show_assigned: true, show_last_tracked: true, show_last_tracked_by: true, show_track_button: true, browser_mod: false } } setConfig(config) { @@ -156,13 +156,13 @@ import { html, LitElement } from "https://unpkg.com/lit?module"; ${item.type == "chore" ? html `