Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-App-Alsijil
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Official
AlekSIS-App-Alsijil
Commits
666cc8e2
Commit
666cc8e2
authored
11 months ago
by
Hangzhi Yu
Browse files
Options
Downloads
Patches
Plain Diff
Use footer instead of bottom sheet for date select
parent
284b0d76
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!352
Draft: Resolve "Add dialog with each lesson's students"
,
!350
Resolve "Add simple course book list"
Pipeline
#177288
failed
11 months ago
Stage: prepare
Stage: test
Stage: build
Stage: publish
Stage: docker
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
aleksis/apps/alsijil/frontend/components/coursebook/CoursebookDateSelect.vue
+23
-30
23 additions, 30 deletions
...l/frontend/components/coursebook/CoursebookDateSelect.vue
with
23 additions
and
30 deletions
aleksis/apps/alsijil/frontend/components/coursebook/CoursebookDateSelect.vue
+
23
−
30
View file @
666cc8e2
...
...
@@ -7,14 +7,6 @@ export default {
components
:
{
DateField
,
},
mounted
()
{
// Vuetify uses the hideScroll method to disable scrolling by setting an event listener
// to the window. As event listeners can only be removed by referencing the listener
// method and because vuetify this method is called on every state change of the dialog,
// we simply replace the method in this component instance
// https://edugit.org/AlekSIS/official/AlekSIS-Core/-/commit/c6048ba9ad8345e98d896801424f5292bb307e2e
this
.
$refs
.
sheet
.
hideScroll
=
this
.
$refs
.
sheet
.
showScroll
;
},
props
:
{
value
:
{
type
:
String
,
...
...
@@ -57,43 +49,44 @@ export default {
</
script
>
<
template
>
<v-bottom-sheet
:value=
"true"
persistent
hide-overlay
no-click-animation
:retain-focus=
"false"
ref=
"sheet"
class=
"rounded-t-xl rounded-b-0"
<v-footer
app
inset
padless
id=
"date-select-footer"
>
<v-card>
<v-card
tile
class=
"full-width"
>
<v-card-title
id=
"content"
>
<div
class=
"d-flex align-center justify-
space-between
full-width"
>
<div
class=
"d-flex align-center justify-
center
full-width"
>
<v-btn
icon
large
class=
"me-4"
@
click=
"handleClick(PREV)"
>
<v-icon>
$prev
</v-icon>
</v-btn>
<date-field
solo-inverted
flat
hide-details
:value=
"value"
@
input=
"$emit('input', $event)"
:label=
"$t('alsijil.coursebook.date_select.label')"
:disabled=
"loading"
readonly
/>
<div
class=
"flex-grow-0"
>
<date-field
solo-inverted
flat
hide-details
:value=
"value"
@
input=
"$emit('input', $event)"
:label=
"$t('alsijil.coursebook.date_select.label')"
:disabled=
"loading"
readonly
/>
</div>
<v-btn
icon
large
class=
"ms-4"
@
click=
"handleClick(NEXT)"
>
<v-icon>
$next
</v-icon>
</v-btn>
</div>
</v-card-title>
</v-card>
</v-
bottom-sheet
>
</v-
footer
>
</
template
>
<
style
scoped
>
#content
{
margin
:
auto
;
max-width
:
500px
;
}
#date-select-footer
{
z-index
:
10
;
}
</
style
>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment