-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[OGUI-1608] Refactor to update FrameworkInfo to AboutView #2742
Changes from 2 commits
b4282b5
4e678ab
a2de99a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,9 +15,9 @@ | |
import { Observable, RemoteData } from '/js/src/index.js'; | ||
|
||
/** | ||
* Model representing FrameworkInfo | ||
* Model representing About View | ||
*/ | ||
export default class FrameworkInfo extends Observable { | ||
export default class AboutViewModel extends Observable { | ||
/** | ||
* Initialize `item` to NotAsked | ||
* @param {Model} model - root model of the application | ||
|
@@ -30,10 +30,10 @@ export default class FrameworkInfo extends Observable { | |
} | ||
|
||
/** | ||
* Load FrameworkInfo into `item` | ||
* Load About Model into `item` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The model is the class itself. |
||
* @returns {undefined} | ||
*/ | ||
async getFrameworkInfo() { | ||
async getAboutViewModel() { | ||
this.item = RemoteData.loading(); | ||
this.notify(); | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @mariscalromeroalejandro. What is the reason for renaming this method to suggest that a model is retrieved?