Showing
2 changed files
with
5 additions
and
5 deletions
@@ -129,7 +129,7 @@ export default function ExtensionFormOpcDirective($compile, $templateCache, $tra | @@ -129,7 +129,7 @@ export default function ExtensionFormOpcDirective($compile, $templateCache, $tra | ||
129 | 129 | ||
130 | if (addedFile && addedFile.length > 0) { | 130 | if (addedFile && addedFile.length > 0) { |
131 | model[options.fileName] = $file.name; | 131 | model[options.fileName] = $file.name; |
132 | - model[options.file] = addedFile.replace(/^data.*base64,/, ""); | 132 | + model[options.location] = addedFile.replace(/^data.*base64,/, ""); |
133 | 133 | ||
134 | } | 134 | } |
135 | } | 135 | } |
@@ -143,7 +143,7 @@ export default function ExtensionFormOpcDirective($compile, $templateCache, $tra | @@ -143,7 +143,7 @@ export default function ExtensionFormOpcDirective($compile, $templateCache, $tra | ||
143 | scope.theForm.$setDirty(); | 143 | scope.theForm.$setDirty(); |
144 | 144 | ||
145 | model[options.fileName] = null; | 145 | model[options.fileName] = null; |
146 | - model[options.file] = null; | 146 | + model[options.location] = null; |
147 | 147 | ||
148 | }; | 148 | }; |
149 | 149 |
@@ -212,8 +212,8 @@ | @@ -212,8 +212,8 @@ | ||
212 | </md-input-container> | 212 | </md-input-container> |
213 | 213 | ||
214 | <section class="dropdown-section"> | 214 | <section class="dropdown-section"> |
215 | - <div class="tb-container" ng-class="{'ng-invalid':!server.keystore.file}"> | ||
216 | - <span ng-init='fieldsToFill = {"fileName":"fileName", "file":"file"}'></span> | 215 | + <div class="tb-container" ng-class="{'ng-invalid':!server.keystore.location}"> |
216 | + <span ng-init='fieldsToFill = {"fileName":"fileName", "location":"location"}'></span> | ||
217 | <label class="tb-label" translate>extension.opc-keystore-location</label> | 217 | <label class="tb-label" translate>extension.opc-keystore-location</label> |
218 | <div flow-init="{singleFile:true}" flow-file-added='fileAdded($file, server.keystore, fieldsToFill)' class="tb-file-select-container"> | 218 | <div flow-init="{singleFile:true}" flow-file-added='fileAdded($file, server.keystore, fieldsToFill)' class="tb-file-select-container"> |
219 | <div class="tb-file-clear-container"> | 219 | <div class="tb-file-clear-container"> |
@@ -231,7 +231,7 @@ | @@ -231,7 +231,7 @@ | ||
231 | class="file-input" | 231 | class="file-input" |
232 | flow-btn id="dropFileKeystore_{{serverIndex}}" | 232 | flow-btn id="dropFileKeystore_{{serverIndex}}" |
233 | name="keystoreFile" | 233 | name="keystoreFile" |
234 | - ng-model="server.keystore.file" | 234 | + ng-model="server.keystore.location" |
235 | > | 235 | > |
236 | </div> | 236 | </div> |
237 | </div> | 237 | </div> |