mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2026-01-18 04:22:27 +01:00
dep:#64 updated frontend packages and fixed changes
This commit is contained in:
@@ -17,7 +17,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
-->
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { computed, useSlots } from "vue";
|
||||
import { computed, SetupContext, useSlots } from "vue";
|
||||
|
||||
defineProps<{
|
||||
hideContent: boolean;
|
||||
@@ -44,7 +44,7 @@ defineProps<{
|
||||
};
|
||||
}>();
|
||||
|
||||
const slots = useSlots();
|
||||
const slots: SetupContext["slots"] = useSlots();
|
||||
const hasSlot = (name: string) => {
|
||||
return !!slots[name];
|
||||
};
|
||||
|
||||
@@ -56,13 +56,14 @@ function extractToken(token: string): string {
|
||||
function loadCalendar(): void {
|
||||
try {
|
||||
token.value = extractToken(token.value);
|
||||
} catch (e) {
|
||||
} catch (error) {
|
||||
toast.add({
|
||||
severity: "error",
|
||||
summary: t("editCalendarView.error"),
|
||||
detail: t("editCalendarView.invalidToken"),
|
||||
life: 3000,
|
||||
});
|
||||
console.error(error);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user