File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
bundles/org.openhab.ui/web/src/pages/settings/things Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -894,7 +894,7 @@ export default {
894894 })
895895 }
896896 },
897- toCode (codeType , successCallback ) {
897+ toCode (codeType , onSuccessCallback ) {
898898 const mediaType = this .ThingMediaType [codeType]
899899 console .log (' toCode' , mediaType)
900900 const payload = { things: [this .thing ] }
@@ -906,15 +906,15 @@ export default {
906906 }
907907 this .thingCode = code
908908 this .originalCode = cloneDeep (code)
909- if (successCallback ) {
910- successCallback ()
909+ if (onSuccessCallback ) {
910+ onSuccessCallback ()
911911 }
912912 })
913913 .catch ((err ) => {
914914 this .$f7 .dialog .alert (` Error creating ${ codeType} : ${ err} ` ).open ()
915915 })
916916 },
917- fromCode (successCallback ) {
917+ fromCode (onSuccessCallback ) {
918918 const mediaType = this .ThingMediaType [this .codeType ]
919919 let payload = null
920920 if (this .codeType === ' YAML' ) {
@@ -929,8 +929,8 @@ export default {
929929 if (data .things && data .things .length > 0 ) {
930930 const updatedThing = data .things [0 ]
931931 this .updateThing (updatedThing)
932- if (successCallback ) {
933- successCallback ()
932+ if (onSuccessCallback ) {
933+ onSuccessCallback ()
934934 }
935935 } else {
936936 this .$f7 .dialog .alert (' Error parsing ' + this .codeType + ' : no things found' ).open ()
You can’t perform that action at this time.
0 commit comments