Skip to content

Commit

Permalink
populate the view with data as well as the edit; just need better 'vi…
Browse files Browse the repository at this point in the history
…ew' mode versus edit mode
  • Loading branch information
jstrachan committed Mar 25, 2013
1 parent 0ab6a56 commit f4a28fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion hawtio-web/src/main/webapp/app/wiki/html/formView.html
@@ -1 +1 @@
<div simple-form name="formViewer" data='formDefinition'></div>
<div simple-form name="formViewer" entity='formEntity' data='formDefinition'></div>
1 change: 1 addition & 0 deletions hawtio-web/src/main/webapp/app/wiki/js/view.ts
Expand Up @@ -130,6 +130,7 @@ module Wiki {
function onFormData(details) {
var text = details.text;
$scope.formDefinition = JSON.parse(text);
$scope.formEntity = JSON.parse($scope.source);
$scope.sourceView = "app/wiki/html/formView.html";
Core.$apply($scope);
}
Expand Down

0 comments on commit f4a28fe

Please sign in to comment.