File tree Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ const routes = [
138
138
) ,
139
139
} ,
140
140
{
141
- path : "/VehicleConfiguration" ,
141
+ path : "/VehicleConfiguration/:section?/:section_index? " ,
142
142
name : "VehicleConfiguration" ,
143
143
meta : {
144
144
heading : "Fahrzeugkonfiguration" ,
Original file line number Diff line number Diff line change 528
528
<openwb-base-card
529
529
title =" Ladeprofil-Vorlagen"
530
530
:collapsible =" true"
531
- :collapsed =" true "
531
+ :collapsed =" $route.params.section != 'charge_template' "
532
532
>
533
533
<template #actions >
534
534
<openwb-base-avatar
556
556
:key =" templateKey"
557
557
:title =" template.name ? template.name : templateKey"
558
558
:collapsible =" true"
559
- :collapsed =" true"
559
+ :collapsed ="
560
+ !(
561
+ $route.params.section == 'charge_template' &&
562
+ parseInt($route.params.section_index) ==
563
+ getChargeTemplateIndex(templateKey)
564
+ )
565
+ "
560
566
subtype =" primary"
561
567
>
562
568
<template #actions v-if =" ! templateKey .endsWith (' /0' )" >
@@ -1824,13 +1830,15 @@ export default {
1824
1830
data: {},
1825
1831
});
1826
1832
},
1833
+ getChargeTemplateIndex (chargeTemplate ) {
1834
+ return parseInt (chargeTemplate .match (/ ([^ /] + )$ / )[0 ]);
1835
+ },
1827
1836
removeChargeTemplateModal (chargeTemplate , event ) {
1828
1837
// prevent further processing of the click event
1829
1838
event .stopPropagation ();
1830
1839
// get trailing characters as index
1831
- this .modalChargeTemplateIndex = parseInt (
1832
- chargeTemplate .match (/ ([^ /] + )$ / )[0 ]
1833
- );
1840
+ this .modalChargeTemplateIndex =
1841
+ this .getChargeTemplateIndex (chargeTemplate);
1834
1842
this .showChargeTemplateModal = true ;
1835
1843
},
1836
1844
removeChargeTemplate (chargeTemplateIndex , event ) {
You can’t perform that action at this time.
0 commit comments