Skip to content
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

admin: Resource settings button is only displayed if there are settings #490

Merged
merged 16 commits into from
May 23, 2024

Conversation

T-MaxWiese-T
Copy link
Contributor

@T-MaxWiese-T T-MaxWiese-T commented May 13, 2024

This pull request refers to this feature request (closes #489) about the admin resource where the resource settings button should only be displayed if there are settings.
It was difficult to make this change. It felt like I had to study half the code to get an overview.

@Fernando-A-Rocha
Copy link
Contributor

I think the same change should be made to the new admin2 resource because admin "1" will be discontinued afaik

@T-MaxWiese-T
Copy link
Contributor Author

I think the same change should be made to the new admin2 resource because admin "1" will be discontinued afaik

I assume that you have not tried the latest admin2 resource version. But I have already written the following about the admin2 resource in my issue (#489):

Additional context I have looked at the admin2 resource and there the resource settings are displayed directly, which I think is definitely better.

However, I have considered that instead of an empty grid list if a resource has no settings, it should say “None”, for example, as well as if no description is given, for example.
Because a good GUI gives you information. If the user sees an empty grid list, he might think that there is an error during loading. It is also clearer if only what is needed is displayed.

@Dutchman101
Copy link
Member

Thanks!

@Dutchman101 Dutchman101 merged commit 0224ef5 into multitheftauto:master May 23, 2024
1 check failed
@T-MaxWiese-T T-MaxWiese-T deleted the admin branch June 28, 2024 06:17
T-MaxWiese-T added a commit to T-MaxWiese-T/mtasa-resources that referenced this pull request Jun 28, 2024
…d the GUI settings window

This pull request ensures that the GUI settings window is no longer opened if you double-click on a resource name in the resource list and it has no settings.
In this pull request (multitheftauto#490) with the change that the settings button should only be displayed if there are settings, I have not considered this.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

admin: Resource settings button should only be displayed if there are settings
3 participants