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