Website: Update query generator (#38643)

Changes:
- Fixed a bug in the query generator that prevented Linux and ChromeOS
queries from being displayed to users automatically.
This commit is contained in:
Eric 2026-01-22 11:55:22 -06:00 committed by GitHub
parent 16e8d48396
commit fd5d77a861
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -70,14 +70,12 @@ parasails.registerPage('query-generator', {
this.generatedQueries = response.result;
if(response.result.macOSQuery) {
this.selectedTab = 'macos';
} else if(!response.result.macOSQuery){
} else if(!response.result.macOSQuery && response.result.windowsQuery){
this.selectedTab = 'windows';
} else if(!response.result.windowsQuery){
} else if(!response.result.windowsQuery && response.result.linuxQuery){
this.selectedTab = 'linux';
} else if(!response.result.linuxQuery) {
} else if(!response.result.linuxQuery && response.result.chromeOSQuery) {
this.selectedTab = 'chromeos';
} else if(!response.result.chromeOSQuery) {
this.selectedTab = 'macos';
}
this.syncing = false;
this.showGeneratedQuery = true;