added button to layout

This commit is contained in:
Kenneth SOARES 2025-05-11 16:05:21 +02:00
parent 5ca1f03d9d
commit 33ba1e8bbb

View File

@ -53,11 +53,11 @@ export class IcsCalendar extends inheritHtmlElement("div") {
if (this.isMobile()) { if (this.isMobile()) {
return { return {
start: "", start: "",
center: "getCalendarLink", center: "getCalendarLink helpButton",
end: "", end: "",
}; };
} }
return { start: "getCalendarLink", center: "", end: "" }; return { start: "getCalendarLink helpButton", center: "", end: "" };
} }
currentHeaderToolbar() { currentHeaderToolbar() {
@ -342,6 +342,7 @@ export class IcsCalendar extends inheritHtmlElement("div") {
}, },
helpButton: { helpButton: {
text: "?", text: "?",
hint: gettext("how to use calendar link"),
click: () => { click: () => {
if (this.helpUrl) { if (this.helpUrl) {
window.open(this.helpUrl, "_blank"); window.open(this.helpUrl, "_blank");