Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Arkindex
Frontend
Commits
6652aec5
Commit
6652aec5
authored
2 years ago
by
ml bonhomme
Browse files
Options
Downloads
Patches
Plain Diff
Edit element from the details panel
parent
98385a32
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1462
Edit element from the details panel
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/Element/PanelHeader.vue
+15
-2
15 additions, 2 deletions
src/components/Element/PanelHeader.vue
with
15 additions
and
2 deletions
src/components/Element/PanelHeader.vue
+
15
−
2
View file @
6652aec5
...
...
@@ -31,6 +31,11 @@
>
<i
class=
"icon-link"
:title=
"`Navigate to $
{element.name}`">
</i>
</router-link>
<a
class=
"icon-edit"
title=
"Edit this element"
v-on:click=
"editionModal = true"
></a>
<a
class=
"icon-trash"
:class=
"canAdminElement(elementId) ? 'has-text-danger' : 'has-text-grey-light'"
...
...
@@ -62,6 +67,11 @@
<button
class=
"button is-danger"
:class=
"
{ 'is-loading': deleteLoading }" v-on:click="performDelete">Delete
</button>
</
template
>
</Modal>
<EditionForm
v-if=
"editionModal"
v-model:modal=
"editionModal"
:element=
"element"
/>
<div
class=
"is-clearfix"
></div>
</div>
</template>
...
...
@@ -75,6 +85,7 @@ import Modal from '@/components/Modal.vue'
import
ItemId
from
'
@/components/ItemId.vue
'
import
WorkerRunSummary
from
'
@/components/Process/Workers/WorkerRuns/WorkerRunSummary.vue
'
import
WorkerVersionDetails
from
'
@/components/Process/Workers/Versions/Details.vue
'
import
EditionForm
from
'
@/components/Element/EditionForm
'
export
default
{
mixins
:
[
...
...
@@ -85,7 +96,8 @@ export default {
Modal
,
ItemId
,
WorkerVersionDetails
,
WorkerRunSummary
WorkerRunSummary
,
EditionForm
},
props
:
{
elementId
:
{
...
...
@@ -95,7 +107,8 @@ export default {
},
data
:
()
=>
({
deleteModal
:
false
,
deleteLoading
:
false
deleteLoading
:
false
,
editionModal
:
false
}),
computed
:
{
...
mapState
(
'
elements
'
,
[
'
elements
'
,
'
neighbors
'
]),
...
...
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