File tree Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -186,7 +186,9 @@ export function compareWizard(
186
186
: 'primary' } );">
187
187
< span > ${ diff . oldValue ?. tagName ?? diff . newValue ?. tagName } </ span >
188
188
< span slot ="secondary ">
189
- ${ describe ( diff . oldValue ) } ↶${ describe ( diff . newValue ) }
189
+ ${ describe ( diff . oldValue ) }
190
+ ${ describe ( diff . oldValue ) && describe ( diff . newValue ) ? html `↶` : html `` }
191
+ ${ describe ( diff . newValue ) }
190
192
</ span >
191
193
< mwc-icon slot ="meta "> compare</ mwc-icon >
192
194
</ mwc-check-list-item > `
Original file line number Diff line number Diff line change @@ -51,9 +51,12 @@ export class CompasSaveTo extends CompasExistsIn(LitElement) {
51
51
const sclData = response . querySelectorAll ( "SclData" ) . item ( 0 ) . textContent ;
52
52
const sclDocument = new DOMParser ( ) . parseFromString ( sclData ?? '' , 'application/xml' ) ;
53
53
54
- updateDocumentInOpenSCD ( sclDocument ) ;
55
-
56
54
const openScd = getOpenScdElement ( ) ;
55
+ openScd . dispatchEvent (
56
+ newLogEvent ( {
57
+ kind : 'reset'
58
+ } ) ) ;
59
+ updateDocumentInOpenSCD ( sclDocument ) ;
57
60
openScd . dispatchEvent (
58
61
newLogEvent ( {
59
62
kind : 'info' ,
@@ -75,9 +78,14 @@ export class CompasSaveTo extends CompasExistsIn(LitElement) {
75
78
. then ( response => {
76
79
const sclData = response . querySelectorAll ( "SclData" ) . item ( 0 ) . textContent ;
77
80
const sclDocument = new DOMParser ( ) . parseFromString ( sclData ?? '' , 'application/xml' ) ;
78
- updateDocumentInOpenSCD ( sclDocument ) ;
79
81
80
82
const openScd = getOpenScdElement ( ) ;
83
+ openScd . dispatchEvent (
84
+ newLogEvent ( {
85
+ kind : 'reset'
86
+ } ) ) ;
87
+ updateDocumentInOpenSCD ( sclDocument ) ;
88
+
81
89
openScd . dispatchEvent (
82
90
newLogEvent ( {
83
91
kind : 'info' ,
You can’t perform that action at this time.
0 commit comments