mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender-pwa.git
synced 2025-08-07 04:09:17 +02:00
fix:#26 added new pages that disable preview button
This commit is contained in:
@@ -12,6 +12,9 @@ const disabledPages = [
|
|||||||
"privacy-policy",
|
"privacy-policy",
|
||||||
"edit",
|
"edit",
|
||||||
"edit-calendar",
|
"edit-calendar",
|
||||||
|
"rooms",
|
||||||
|
"free-rooms",
|
||||||
|
"room-schedule"
|
||||||
];
|
];
|
||||||
|
|
||||||
const store = moduleStore();
|
const store = moduleStore();
|
||||||
|
@@ -53,7 +53,6 @@ export async function saveIndividualFeed(
|
|||||||
return feedResponse;
|
return feedResponse;
|
||||||
})
|
})
|
||||||
.then((response: FeedResponse) => {
|
.then((response: FeedResponse) => {
|
||||||
console.debug("response", response);
|
|
||||||
token = response.id;
|
token = response.id;
|
||||||
});
|
});
|
||||||
return token;
|
return token;
|
||||||
|
@@ -4,7 +4,6 @@ export async function requestFreeRooms(
|
|||||||
from: string,
|
from: string,
|
||||||
to: string,
|
to: string,
|
||||||
): Promise<string[]> {
|
): Promise<string[]> {
|
||||||
console.debug("requestFreeRooms: from=" + from + ", to=" + to);
|
|
||||||
const rooms: string[] = [];
|
const rooms: string[] = [];
|
||||||
await fetch("/api/rooms/free?from=" + from + "&to=" + to)
|
await fetch("/api/rooms/free?from=" + from + "&to=" + to)
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
|
@@ -34,8 +34,7 @@ function rerouteIfTokenIsEmpty() {
|
|||||||
|
|
||||||
function copyToClipboard() {
|
function copyToClipboard() {
|
||||||
// Copy the text inside the text field
|
// Copy the text inside the text field
|
||||||
navigator.clipboard.writeText(getLink()).then(show, (err) => {
|
navigator.clipboard.writeText(getLink()).then(show, () => {
|
||||||
console.error("Could not copy text: ", err);
|
|
||||||
toast.add({
|
toast.add({
|
||||||
severity: "error",
|
severity: "error",
|
||||||
summary: t("calendarLink.copyToastError"),
|
summary: t("calendarLink.copyToastError"),
|
||||||
|
@@ -60,7 +60,7 @@ async function getOccupation() {
|
|||||||
calendar?.refetchEvents();
|
calendar?.refetchEvents();
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
console.log(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -45,7 +45,6 @@ const fetchedModules = async () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
function deleteModule(module: Module) {
|
function deleteModule(module: Module) {
|
||||||
console.debug(module);
|
|
||||||
moduleStore().removeModule(module);
|
moduleStore().removeModule(module);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user