-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: submission details not displaying (#1235)
- Loading branch information
1 parent
e81570c
commit 3551b54
Showing
3 changed files
with
11 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,17 @@ | ||
import Component from '@glimmer/component'; | ||
import { inject as service } from '@ember/service'; | ||
import { tracked } from '@glimmer/tracking'; | ||
import { action } from '@ember/object'; | ||
|
||
export default class DisplayMetadataKeys extends Component { | ||
@service metadataSchema; | ||
|
||
get displayData() { | ||
return this.metadataSchema.displayMetadata(this.args.submission); | ||
@tracked displayData = null; | ||
|
||
@action | ||
async setupDisplayData() { | ||
const schemaService = this.metadataSchema; | ||
const displayData = await schemaService.displayMetadata(this.args.submission); | ||
this.displayData = displayData; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters