This commit is contained in:
jliddev
2021-03-26 15:30:30 -05:00
parent ebef8413d5
commit cf7ed11fd9
3 changed files with 9 additions and 3 deletions

View File

@@ -21,7 +21,7 @@
| translate
: {
clientTypeName: (clientTypeName | translate)?.toLowerCase(),
clientFolderName: clientFolderName
clientFolderName: executableName
}
}}
</mat-hint>

View File

@@ -14,6 +14,7 @@ import { WowInstallation } from "../../models/wowup/wow-installation";
import { WarcraftInstallationService } from "../../services/warcraft/warcraft-installation.service";
import { getEnumList, getEnumName } from "../../utils/enum.utils";
import { ConfirmDialogComponent } from "../confirm-dialog/confirm-dialog.component";
import { WarcraftService } from "../../services/warcraft/warcraft.service";
@Component({
selector: "app-wow-client-options",
@@ -61,6 +62,10 @@ export class WowClientOptionsComponent implements OnInit, OnDestroy {
}
}
public get executableName(): string {
return this._warcraftService.getExecutableName(this.installation.clientType);
}
public get wowLogoImage(): string {
switch (this.installation.clientType) {
case WowClientType.Beta:
@@ -79,7 +84,8 @@ export class WowClientOptionsComponent implements OnInit, OnDestroy {
public constructor(
private _dialog: MatDialog,
private _translateService: TranslateService,
private _warcraftInstallationService: WarcraftInstallationService
private _warcraftInstallationService: WarcraftInstallationService,
private _warcraftService: WarcraftService
) {
this.addonChannelInfos = this.getAddonChannelInfos();
}

View File

@@ -442,7 +442,7 @@
"MESSAGE": "Are you sure you want to remove the installation at \"{location}\"? This will remove all stored addon information for this client.\n\nYour addon folders will not be removed.",
"TITLE": "Remove World of Warcraft Installation?"
},
"CLIENT_TYPE_INPUT_HINT": "The folder that contains the {clientTypeName} client folder \"{clientFolderName}\"",
"CLIENT_TYPE_INPUT_HINT": "Select the {clientTypeName} application \"{clientFolderName}\"",
"CLIENT_TYPE_PATH_LABEL": "{clientTypeName} path",
"DEFAULT_ADDON_CHANNEL_LABEL": "Default Addon Channel",
"DEFAULT_ADDON_CHANNEL_SELECT_LABEL": "Addon Channel",