Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor 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-Core
Merge requests
!1655
Resolve "Introduce non-dialog object form"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Introduce non-dialog object form"
1110-introduce-non-dialog-object-form
into
master
Overview
3
Commits
13
Pipelines
9
Changes
11
Merged
Julian
requested to merge
1110-introduce-non-dialog-object-form
into
master
5 months ago
Overview
3
Commits
13
Pipelines
9
Changes
11
Expand
Closes
#1110 (closed)
0
0
Merge request reports
Compare
master
version 7
4c50eff9
3 months ago
version 6
ba1e336d
3 months ago
version 5
dac1e97a
3 months ago
version 4
fb31711f
3 months ago
version 3
9a928451
3 months ago
version 2
a1a4c51b
5 months ago
version 1
7eb38991
5 months ago
master (base)
and
latest version
latest version
78bea7dc
13 commits,
3 months ago
version 7
4c50eff9
12 commits,
3 months ago
version 6
ba1e336d
11 commits,
3 months ago
version 5
dac1e97a
10 commits,
3 months ago
version 4
fb31711f
9 commits,
3 months ago
version 3
9a928451
9 commits,
3 months ago
version 2
a1a4c51b
8 commits,
5 months ago
version 1
7eb38991
6 commits,
5 months ago
11 files
+
500
−
299
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
11
Search (e.g. *.vue) (Ctrl+P)
aleksis/core/frontend/components/generic/crud/FullscreenDialogObjectForm.vue
0 → 100644
+
68
−
0
Options
<
script
>
import
SaveButton
from
"
../buttons/SaveButton.vue
"
;
import
ObjectForm
from
"
./ObjectForm.vue
"
;
import
CancelButton
from
"
../buttons/CancelButton.vue
"
;
import
objectFormPropsMixin
from
"
../../../mixins/objectFormPropsMixin
"
;
import
loadingMixin
from
"
../../../mixins/loadingMixin
"
;
import
FullscreenDialogPage
from
"
../dialogs/FullscreenDialogPage.vue
"
;
export
default
{
name
:
"
FullscreenDialogObjectForm
"
,
components
:
{
FullscreenDialogPage
,
CancelButton
,
ObjectForm
,
SaveButton
},
mixins
:
[
objectFormPropsMixin
,
loadingMixin
],
props
:
{
successRedirectUrl
:
{
type
:
[
String
,
Object
],
default
:
null
,
},
fallbackUrl
:
{
type
:
[
Object
,
String
],
default
:
null
,
},
},
methods
:
{
cancel
()
{
this
.
$backOrElse
(
this
.
fallbackUrl
);
},
save
()
{
this
.
$router
.
push
(
this
.
successRedirectUrl
);
},
},
data
()
{
return
{
valid
:
false
,
};
},
mounted
()
{
this
.
$setToolBarTitle
(
this
?.
$refs
?.
form
?.
title
);
},
};
</
script
>
<
template
>
<fullscreen-dialog-page
v-bind=
"$attrs"
>
<object-form
ref=
"form"
v-bind=
"objectFormProps"
v-on=
"$listeners"
:valid.sync=
"valid"
@
loading=
"handleLoading"
@
save=
"save"
@
cancel=
"cancel"
>
<template
v-for=
"(_, slot) of $scopedSlots"
#[slot]=
"scope"
><slot
:name=
"slot"
v-bind=
"scope"
/></
template
>
</object-form>
<
template
#actions
>
<v-spacer
/>
<cancel-button
@
click=
"cancel"
:disabled=
"loading"
/>
<save-button
@
click=
"$refs?.form.submit()"
:loading=
"loading"
:disabled=
"!valid"
/>
</
template
>
</fullscreen-dialog-page>
</template>
Loading