@@ -70,53 +70,47 @@ export class SubstationEditor extends LitElement {
70
70
}
71
71
72
72
render ( ) : TemplateResult {
73
- return html `
74
- <edito r- container
75
- .element = ${ this . element }
76
- >
77
- ${ this . renderIedContainer ( ) }
78
- <abbr slot= "header" title = "${ translate ( 'lnode.tooltip' ) } ">
79
- <mwc- icon- butto n
80
- icon= "account_tree"
81
- @click = ${ ( ) => this . openLNodeWizard ( ) }
82
- > </ mwc- icon- butto n>
83
- </ abbr>
84
- <abbr slot= "header" title = "${ translate ( 'duplicate' ) } ">
85
- <mwc- icon- butto n
86
- icon= "content_copy"
87
- @click = ${ ( ) => cloneSubstationElement ( this ) }
88
- > </ mwc- icon- butto n>
89
- </ abbr>
90
- <abbr slot= "header" title = "${ translate ( 'edit' ) } ">
91
- <mwc- icon- butto n
92
- icon= "edit"
93
- @click = ${ ( ) => this . openEditWizard ( ) }
94
- > </ mwc- icon- butto n>
95
- </ abbr>
96
- <abbr slot= "header" title = "${ translate ( 'move' ) } ">
97
- <mwc- icon- butto n
98
- icon= "forward"
99
- @click = ${ ( ) =>
100
- startMove ( this , SubstationEditor , SubstationEditor ) }
101
- > </ mwc- icon- butto n>
102
- </ abbr>
103
- <abbr slot= "header" title = "${ translate ( 'remove' ) } ">
104
- <mwc- icon- butto n
105
- icon= "delete"
106
- @click = ${ ( ) => this . remove ( ) }
107
- > </ mwc- icon- butto n> </ abbr
108
- > ${ Array . from (
109
- this . element . querySelectorAll ( selectors . VoltageLevel )
110
- ) . map (
111
- voltageLevel =>
112
- html `<voltage-level- edito r
113
- .element = ${ voltageLevel }
114
- .getAttachedIeds = ${ this . getAttachedIeds }
115
- ?readonly = ${ this . readonly }
116
- > </ voltage-level- edito r> `
117
- ) } </ edito r- container>
118
- </ section>
119
- ` ;
73
+ return html `<edito r- container .element = ${ this . element } >
74
+ <abbr slot= "header" title = "${ translate ( 'lnode.tooltip' ) } " >
75
+ <mwc- icon- butto n
76
+ icon= "account_tree"
77
+ @click = ${ ( ) => this . openLNodeWizard ( ) }
78
+ > </ mwc- icon- butto n>
79
+ </ abbr>
80
+ <abbr slot= "header" title = "${ translate ( 'duplicate' ) } " >
81
+ <mwc- icon- butto n
82
+ icon= "content_copy"
83
+ @click = ${ ( ) => cloneSubstationElement ( this ) }
84
+ > </ mwc- icon- butto n>
85
+ </ abbr>
86
+ <abbr slot= "header" title = "${ translate ( 'edit' ) } " >
87
+ <mwc- icon- butto n
88
+ icon= "edit"
89
+ @click = ${ ( ) => this . openEditWizard ( ) }
90
+ > </ mwc- icon- butto n>
91
+ </ abbr>
92
+ <abbr slot= "header" title = "${ translate ( 'move' ) } " >
93
+ <mwc- icon- butto n
94
+ icon= "forward"
95
+ @click = ${ ( ) => startMove ( this , SubstationEditor , SubstationEditor ) }
96
+ > </ mwc- icon- butto n>
97
+ </ abbr>
98
+ <abbr slot= "header" title = "${ translate ( 'remove' ) } " >
99
+ <mwc- icon- butto n
100
+ icon= "delete"
101
+ @click = ${ ( ) => this . remove ( ) }
102
+ > </ mwc- icon- butto n
103
+ > </ abbr>
104
+ ${ this . renderIedContainer ( ) }
105
+ ${ Array . from ( this . element . querySelectorAll ( selectors . VoltageLevel ) ) . map (
106
+ voltageLevel =>
107
+ html `<voltage-level- edito r
108
+ .element = ${ voltageLevel }
109
+ .getAttachedIeds = ${ this . getAttachedIeds }
110
+ ?readonly = ${ this . readonly }
111
+ > </ voltage-level- edito r> `
112
+ ) } </ edito r- container
113
+ > ` ;
120
114
}
121
115
122
116
static styles = css `
0 commit comments