Skip to content
Snippets Groups Projects
Verified Commit ef75fdeb authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Merge branch 'refactor/calendar-overview' of...

Merge branch 'refactor/calendar-overview' of edugit.org:AlekSIS/official/AlekSIS-Core into refactor/calendar-overview
parents d8aaf0c5 2e0c31fb
No related branches found
No related tags found
1 merge request!1304Refactor calendar overview in more different components
Pipeline #141688 failed
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
v-on="$listeners" v-on="$listeners"
:fullscreen="$vuetify.breakpoint.xs" :fullscreen="$vuetify.breakpoint.xs"
:hide-overlay="$vuetify.breakpoint.xs" :hide-overlay="$vuetify.breakpoint.xs"
max-width="600px" :max-width="maxWidth"
> >
<template #activator="activator"> <template #activator="activator">
<slot name="activator" v-bind="activator"></slot> <slot name="activator" v-bind="activator"></slot>
...@@ -34,6 +34,13 @@ ...@@ -34,6 +34,13 @@
export default { export default {
name: "MobileFullscreenDialog", name: "MobileFullscreenDialog",
extends: "v-dialog", extends: "v-dialog",
props: {
maxWidth: {
type: String | Number,
required: false,
default: "600px",
}
}
}; };
</script> </script>
......
...@@ -7,6 +7,9 @@ ...@@ -7,6 +7,9 @@
:item-text="itemName" :item-text="itemName"
class="fc-my-auto" class="fc-my-auto"
> >
<template #item="item">
<slot name="item" v-bind="item" />
</template>
<template #append-outer> <template #append-outer>
<v-btn icon @click="menu = true"> <v-btn icon @click="menu = true">
<v-icon>$plus</v-icon> <v-icon>$plus</v-icon>
......
...@@ -77,6 +77,16 @@ class PermissionsTypeMixin: ...@@ -77,6 +77,16 @@ class PermissionsTypeMixin:
return info.context.user.has_perm(perm, root) return info.context.user.has_perm(perm, root)
class OptimisticResponseTypeMixin:
"""Mixin for using OptimisticResponse in the frontend.
Simply adds a field called `is_optimistic` that is always false,
but should be set to true by the frontend
"""
is_optimistic = graphene.Boolean(default_value=False)
class PermissionBatchPatchMixin: class PermissionBatchPatchMixin:
class Meta: class Meta:
login_required = True login_required = True
......
...@@ -39,6 +39,7 @@ class SchoolTermCreateMutation(DjangoCreateMutation): ...@@ -39,6 +39,7 @@ class SchoolTermCreateMutation(DjangoCreateMutation):
class Meta: class Meta:
model = SchoolTerm model = SchoolTerm
permissions = ("core.create_school_term",) # FIXME permissions = ("core.create_school_term",) # FIXME
exclude = ("managed_by_app_label",)
@classmethod @classmethod
def validate(cls, root, info, input): # noqa def validate(cls, root, info, input): # noqa
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment