mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2025-08-04 02:39:14 +02:00
fix:#15 linted format and typ fix
This commit is contained in:
@@ -12,7 +12,7 @@ const { t } = useI18n({ useScope: "global" });
|
||||
const toast = useToast();
|
||||
|
||||
const token: Ref<string> = ref("");
|
||||
const modules: Ref<Module[]> = ref(moduleStore().modules);
|
||||
const modules: Ref<Map<string, Module>> = ref(moduleStore().modules);
|
||||
|
||||
function extractToken(token: string): string {
|
||||
const tokenRegex = /^[a-z0-9]{15}$/;
|
||||
@@ -50,7 +50,7 @@ function loadCalendar(): void {
|
||||
data.forEach((module) => {
|
||||
moduleStore().addModule(module);
|
||||
});
|
||||
modules.value = data;
|
||||
modules.value = moduleStore().modules;
|
||||
});
|
||||
|
||||
router.push("/edit-additional-modules");
|
||||
@@ -77,12 +77,20 @@ function loadCalendar(): void {
|
||||
<div
|
||||
class="flex align-items-center justify-content-center border-round m-2"
|
||||
>
|
||||
<InputText v-model="token" type="text" autofocus @keyup.enter="loadCalendar" />
|
||||
<InputText
|
||||
v-model="token"
|
||||
type="text"
|
||||
autofocus
|
||||
@keyup.enter="loadCalendar"
|
||||
/>
|
||||
</div>
|
||||
<div
|
||||
class="flex align-items-center justify-content-center border-round m-2"
|
||||
>
|
||||
<Button :label="$t('editCalendarView.loadCalendar')" @click="loadCalendar" />
|
||||
<Button
|
||||
:label="$t('editCalendarView.loadCalendar')"
|
||||
@click="loadCalendar"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
Reference in New Issue
Block a user