Skip to content

Commit 62f9bc5

Browse files
authored
fix: google calendar doesnt open from link (#382)
* fix: typo in package.json * fix: open google calendar link
1 parent 882f09a commit 62f9bc5

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

dist/atomic-calendar-revive.js

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "atomic-calendar-revive",
3-
"version": "3.1.0",
3+
"version": "3.1.1",
44
"editor_version": "1.3.0",
55
"description": "Calendar Card for Home Assistant",
66
"main": "atomic-calendar-revive.js",
@@ -52,7 +52,7 @@
5252
"custom-card-helpers": "^1.6.6",
5353
"lit-element": "^2.4.0",
5454
"moment": "^2.29.1",
55-
"node-google-lendar": "^1.1.1",
55+
"node-google-calendar": "^1.1.1",
5656
"npm": "^6.14.9",
5757
"rollup-plugin-typescript2": "^0.29.0",
5858
"typescript": "^4.1.2"

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1276,9 +1276,9 @@ class AtomicCalendarRevive extends LitElement {
12761276
return html`<div class="calIconSelector">
12771277
<ha-icon-button
12781278
icon="mdi:calendar"
1279-
@click="https://calendar.google.com/calendar/r/month/${moment(this.selectedMonth).format('YYYY')}/${moment(
1279+
onClick="window.open('https://calendar.google.com/calendar/r/month/${moment(this.selectedMonth).format('YYYY')}/${moment(
12801280
this.selectedMonth,
1281-
).format('MM')}/1">
1281+
).format('MM')}/1'), '${this._config.linkTarget}'">
12821282
</ha-icon-button>
12831283
</div>`
12841284
}

0 commit comments

Comments
 (0)