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

Implement issue #1247 #1269

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

Implement issue #1247 #1269

wants to merge 1 commit into from

Conversation

EpicDenmos
Copy link
Contributor

Add an option in the WoW clients options to hide a specific WoW client from the My Addons and Get Addons pages.

Fix issue WowUp#1247
Add an option in the WoW clients options to hide a specific WoW client from the My Addons and Get Addons pages.
@@ -46,13 +46,16 @@ export class ClientSelectorComponent implements OnInit {

private async mapInstallations(installations: WowInstallation[]): Promise<WowInstallation[]> {
let total = 0;
for (const inst of installations) {

const displayedInstallations: WowInstallation[] = installations.filter((i) => !i.isHidden);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll probably need a migration to set everything to isHidden = false, but I don't know how that should be added. @jliddev is that something you can explain or add later? Without the migration every client will suddenly be hidden.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isHidden is optional and will be considered "false" if not present. So every client should be displayed by default and hidden only if manually set to in the options

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah my bad, it's the double negative

@linaori
Copy link
Contributor

linaori commented Jun 12, 2022

We should probably also ignore update checks and notifications if the client is hidden?

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.

None yet

2 participants