Skip to content

Commit

Permalink
fix display/format for default tool options
Browse files Browse the repository at this point in the history
  • Loading branch information
jaeddy committed Aug 23, 2019
1 parent a654e48 commit 696bdfb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion client/components/resource/resource-new/resource-new.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ <h1>Create a New Resource</h1>
<!-- <mat-error *ngIf="newForm.controls.tool.invalid">
Please enter a valid Tool.
</mat-error> -->
<option *ngFor="let value of toolOpts" [value]="value">{{ value }}</option>
<option *ngFor="let opt of toolOpts" [value]="opt.value">{{ opt.name }}</option>
</select>
</mat-form-field>
<app-quill-editor class="app-resource-new-description-editor" [isReadOnly]="false" [showActions]="false" placeholder="Insert description..." [body]="newForm.controls['description']"></app-quill-editor>
Expand Down
17 changes: 13 additions & 4 deletions server/config/environment/shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,19 @@ export const ckanApiBaseUrl = 'https://ckan.phc.sagesandbox.org/api/3';

// TODO: replace with tool service query
export const defaultTools = [
'Facile Explorer',
'IRIS Enterprise Explorer',
'PHC Advanced Analytics',
'PHCCP Shiny Tool Example'
{
value: '5cb6a048e7bdc7740874fd93',
name: 'Facile Explorer'
}, {
value: '5cb6a048e7bdc7740874fd95',
name: 'IRIS Enterprise Explorer'
}, {
value: '5cb6a048e7bdc7740874fd98',
name: 'PHC Advanced Analytics'
}, {
value: '5cb7acb3167e4f14b29dfb1b',
name: 'PHCCP Shiny Tool Example'
}
];

export const models = {
Expand Down

0 comments on commit 696bdfb

Please sign in to comment.