-
Notifications
You must be signed in to change notification settings - Fork 286
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
[feature discussion] ability to configure value for "Hide Empty Model Types" #741
Comments
That sounds reasonable. What do you think about remembering your last choice instead of making it a configuration? On a related note, I think a search feature would be really useful for large apps as well. |
ah, yeah that is more sensible. Basically persisting it via the addon's install state. (localStorage under the hood I imagine?) |
Are you interested in submitting a PR? Something like: hideEmptyModels: computed({
get() {
return !!this.get('storage').getItem('are-model-types-hidden');
},
set(key, value) {
this.get('storage').setItem('are-model-types-hidden', value);
return value;
}
}) |
@teddyzeenny definitely. I can try to put something together over the next few weeks. I like how simple your snippet is; will make implementing a breeze. |
use case
As a developer in a large app, we use a number of different ember data models. Often when developing one section, I only care about seeing one's loaded in the store. Thus I would like to be able to save a preference to toggle this on.
![screen shot 2017-12-20 at 1 50 27 pm](https://user-images.githubusercontent.com/472721/34223293-cf3fca5c-e58c-11e7-91dd-888cd3036ed1.png)
I would see this as simple checkbox navigated to from Ember Inspector's options link:
prior work
https://github.com/emberjs/ember-inspector/pull/458/files
The text was updated successfully, but these errors were encountered: