Skip to content

Commit

Permalink
Add models directory to import and editor html (hyperledger-archives#…
Browse files Browse the repository at this point in the history
…1132)

* Add models directory to import and editor html

* add test edits for changes
  • Loading branch information
nklincoln authored May 31, 2017
1 parent 808cbd0 commit 51bdf8e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -432,13 +432,13 @@ describe('EditorComponent', () => {
component['files'][1].should.deep.equal({
model: true,
id: 'model 1',
displayID: 'model/model 1.cto',
displayID: 'models/model 1.cto',
});

component['files'][2].should.deep.equal({
model: true,
id: 'model 2',
displayID: 'model/model 2.cto',
displayID: 'models/model 2.cto',
});

component['files'][3].should.deep.equal({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ export class EditorComponent implements OnInit, OnDestroy {
newModelFiles.push({
model: true,
id: modelFile.getNamespace(),
displayID: 'model/' + modelFile.getNamespace() + '.cto',
displayID: 'models/' + modelFile.getNamespace() + '.cto',
});
});
newModelFiles.sort((a, b) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ <h1>Import/Replace Business Network</h1>
<div class="title">Files:</div>
<ul>
<li *ngFor="let modelFile of currentBusinessNetwork.getModelManager().getModelFiles()">
{{modelFile.getNamespace()}}.cto
models/{{modelFile.getNamespace()}}.cto
</li>
<li *ngFor="let scriptFile of currentBusinessNetwork.getScriptManager().getScripts()">
{{scriptFile.getIdentifier()}}
Expand Down

0 comments on commit 51bdf8e

Please sign in to comment.