Skip to content

Commit

Permalink
fixed #8588 - hide hidden profiles in the "new profile" selector
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugeny committed Jun 16, 2023
1 parent ad764d2 commit bc8ac12
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -60,6 +60,7 @@ export class ProfilesSettingsTabComponent extends BaseComponent {
async newProfile (base?: PartialProfile<Profile>): Promise<void> {
if (!base) {
const profiles = [...this.templateProfiles, ...this.builtinProfiles, ...this.profiles]
profiles = profiles.filter(x => !this.isProfileBlacklisted(x))

Check failure on line 63 in tabby-settings/src/components/profilesSettingsTab.component.ts

View workflow job for this annotation

GitHub Actions / Lint

Cannot assign to 'profiles' because it is a constant.

Check failure on line 63 in tabby-settings/src/components/profilesSettingsTab.component.ts

View workflow job for this annotation

GitHub Actions / build

Cannot assign to 'profiles' because it is a constant.

Check failure on line 63 in tabby-settings/src/components/profilesSettingsTab.component.ts

View workflow job for this annotation

GitHub Actions / Windows-Build (x64)

Cannot assign to 'profiles' because it is a constant.

Check failure on line 63 in tabby-settings/src/components/profilesSettingsTab.component.ts

View workflow job for this annotation

GitHub Actions / Windows-Build (arm64)

Cannot assign to 'profiles' because it is a constant.

Check failure on line 63 in tabby-settings/src/components/profilesSettingsTab.component.ts

View workflow job for this annotation

GitHub Actions / macOS-Build (x86_64)

Cannot assign to 'profiles' because it is a constant.

Check failure on line 63 in tabby-settings/src/components/profilesSettingsTab.component.ts

View workflow job for this annotation

GitHub Actions / macOS-Build (arm64)

Cannot assign to 'profiles' because it is a constant.

Check failure on line 63 in tabby-settings/src/components/profilesSettingsTab.component.ts

View workflow job for this annotation

GitHub Actions / Linux-Build (x64)

Cannot assign to 'profiles' because it is a constant.
profiles.sort((a, b) => (a.weight ?? 0) - (b.weight ?? 0))
base = await this.selector.show(
this.translate.instant('Select a base profile to use as a template'),
Expand Down

0 comments on commit bc8ac12

Please sign in to comment.