fix:#26 added new pages that disable preview button

This commit is contained in:
Elmar Kresse
2024-02-02 17:07:53 +01:00
parent 6c3cbf35d6
commit 9b31e3ba06
6 changed files with 5 additions and 6 deletions

View File

@ -12,6 +12,9 @@ const disabledPages = [
"privacy-policy",
"edit",
"edit-calendar",
"rooms",
"free-rooms",
"room-schedule"
];
const store = moduleStore();

View File

@ -53,7 +53,6 @@ export async function saveIndividualFeed(
return feedResponse;
})
.then((response: FeedResponse) => {
console.debug("response", response);
token = response.id;
});
return token;

View File

@ -4,7 +4,6 @@ export async function requestFreeRooms(
from: string,
to: string,
): Promise<string[]> {
console.debug("requestFreeRooms: from=" + from + ", to=" + to);
const rooms: string[] = [];
await fetch("/api/rooms/free?from=" + from + "&to=" + to)
.then((response) => {

View File

@ -34,8 +34,7 @@ function rerouteIfTokenIsEmpty() {
function copyToClipboard() {
// Copy the text inside the text field
navigator.clipboard.writeText(getLink()).then(show, (err) => {
console.error("Could not copy text: ", err);
navigator.clipboard.writeText(getLink()).then(show, () => {
toast.add({
severity: "error",
summary: t("calendarLink.copyToastError"),

View File

@ -60,7 +60,7 @@ async function getOccupation() {
calendar?.refetchEvents();
})
.catch((error) => {
console.log(error);
console.error(error);
});
}

View File

@ -45,7 +45,6 @@ const fetchedModules = async () => {
};
function deleteModule(module: Module) {
console.debug(module);
moduleStore().removeModule(module);
}