Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-App-Lesrooster
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
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-Lesrooster
Merge requests
!23
Resolve "Improve publishing process of validity ranges"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Improve publishing process of validity ranges"
10-improve-publishing-process-of-validity-ranges
into
master
Overview
5
Commits
12
Pipelines
19
Changes
14
Merged
Jonathan Weth
requested to merge
10-improve-publishing-process-of-validity-ranges
into
master
1 year ago
Overview
5
Commits
12
Pipelines
19
Changes
14
Expand
Closes
#10 (closed)
0
0
Merge request reports
Compare
master
version 14
f65733e1
9 months ago
version 13
08bf983c
1 year ago
version 12
35cc100f
1 year ago
version 11
16368cd4
1 year ago
version 10
79a9afb0
1 year ago
version 9
79a9afb0
1 year ago
version 8
54a3bd5a
1 year ago
version 7
597bceab
1 year ago
version 6
6997658e
1 year ago
version 5
8767b826
1 year ago
version 4
0fe2f550
1 year ago
version 3
bd57c967
1 year ago
version 2
1a314d09
1 year ago
version 1
c77547f3
1 year ago
master (base)
and
latest version
latest version
1bc1f933
12 commits,
9 months ago
version 14
f65733e1
11 commits,
9 months ago
version 13
08bf983c
11 commits,
1 year ago
version 12
35cc100f
8 commits,
1 year ago
version 11
16368cd4
7 commits,
1 year ago
version 10
79a9afb0
9 commits,
1 year ago
version 9
79a9afb0
9 commits,
1 year ago
version 8
54a3bd5a
7 commits,
1 year ago
version 7
597bceab
6 commits,
1 year ago
version 6
6997658e
4 commits,
1 year ago
version 5
8767b826
4 commits,
1 year ago
version 4
0fe2f550
3 commits,
1 year ago
version 3
bd57c967
2 commits,
1 year ago
version 2
1a314d09
1 commit,
1 year ago
version 1
c77547f3
1 commit,
1 year ago
14 files
+
747
−
139
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
14
Search (e.g. *.vue) (Ctrl+P)
aleksis/apps/lesrooster/frontend/components/validity_range/PublishValidityRange.vue
0 → 100644
+
59
−
0
Options
<
template
>
<ApolloMutation
v-if=
"item.status !== 'PUBLISHED'"
:mutation=
"publishValidityRange"
:variables=
"
{ id: item.id }"
@done="onDone"
@error="handleMutationError"
tag="span"
>
<template
#default
="
{ mutate, loading, error }">
<confirm-dialog
v-model=
"confirmDialog"
@
confirm=
"mutate()"
>
<template
#title
>
{{
$t
(
"
lesrooster.validity_range.publish.confirm_title
"
,
item
)
}}
</
template
>
<
template
#text
>
{{
$t
(
"
lesrooster.validity_range.publish.confirm_explanation
"
,
item
)
}}
</
template
>
<
template
#confirm
>
{{
$t
(
"
lesrooster.validity_range.publish.confirm_button
"
)
}}
</
template
>
</confirm-dialog>
<secondary-action-button
icon-text=
"mdi-publish"
i18n-key=
"lesrooster.validity_range.publish.button"
@
click=
"confirmDialog = true"
:loading=
"loading"
></secondary-action-button>
</template>
</ApolloMutation>
</template>
<
script
setup
>
import
SecondaryActionButton
from
"
aleksis.core/components/generic/buttons/SecondaryActionButton.vue
"
;
import
ConfirmDialog
from
"
aleksis.core/components/generic/dialogs/ConfirmDialog.vue
"
;
</
script
>
<
script
>
import
{
publishValidityRange
}
from
"
./validityRange.graphql
"
;
export
default
{
name
:
"
PublishValidityRange
"
,
data
()
{
return
{
confirmDialog
:
false
,
};
},
methods
:
{
onDone
()
{
this
.
$activateFrequentCeleryPolling
();
},
},
props
:
{
item
:
{
type
:
Object
,
required
:
true
,
},
},
};
</
script
>
Loading