Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Package registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
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
HUB Terra
SMS
Frontend
Commits
7fb2d4f5
Verified
Commit
7fb2d4f5
authored
4 years ago
by
Marc Hanisch
Browse files
Options
Downloads
Patches
Plain Diff
removes debug output
parent
0c877136
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!90
Draft: restructure frontend properties 2
,
!82
Restructure frontend
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pages/devices/_deviceId/properties.vue
+2
-4
2 additions, 4 deletions
pages/devices/_deviceId/properties.vue
with
2 additions
and
4 deletions
pages/devices/_deviceId/properties.vue
+
2
−
4
View file @
7fb2d4f5
...
@@ -161,16 +161,15 @@ export default class DevicePropertiesPage extends Vue {
...
@@ -161,16 +161,15 @@ export default class DevicePropertiesPage extends Vue {
openSelectedPanel
():
void
{
openSelectedPanel
():
void
{
const
propertyId
=
this
.
getPropertyIdFromUrl
()
const
propertyId
=
this
.
getPropertyIdFromUrl
()
console
.
log
(
'
propertyId by URL is
'
,
propertyId
)
if
(
!
propertyId
)
{
if
(
!
propertyId
)
{
return
return
}
}
const
propertyIndex
:
number
=
this
.
deviceProperties
.
findIndex
((
prop
:
DeviceProperty
)
=>
prop
.
id
===
propertyId
)
const
propertyIndex
:
number
=
this
.
deviceProperties
.
findIndex
((
prop
:
DeviceProperty
)
=>
prop
.
id
===
propertyId
)
console
.
log
(
'
propertyIndex is
'
,
propertyIndex
)
if
(
propertyIndex
===
-
1
)
{
if
(
propertyIndex
===
-
1
)
{
return
return
}
}
Vue
.
set
(
this
,
'
openedPanels
'
,
[
propertyIndex
])
this
.
openedPanels
.
forEach
((
_
,
i
)
=>
this
.
openedPanels
.
splice
(
i
,
1
))
this
.
openedPanels
.
push
(
propertyIndex
)
}
}
addProperty
():
void
{
addProperty
():
void
{
...
@@ -204,7 +203,6 @@ export default class DevicePropertiesPage extends Vue {
...
@@ -204,7 +203,6 @@ export default class DevicePropertiesPage extends Vue {
// @ts-ignore
// @ts-ignore
onRouteChanged
()
{
onRouteChanged
()
{
this
.
openSelectedPanel
()
this
.
openSelectedPanel
()
console
.
log
(
'
route changed
'
,
this
.
openedPanels
)
}
}
}
}
</
script
>
</
script
>
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