UI: Fixed mobile center congiguration dialog
This commit is contained in:
parent
05690fce5d
commit
d2cb95d0ce
@ -66,11 +66,21 @@ export class MobileAppConfigurationDialogComponent extends DialogComponent<Mobil
|
||||
this.configureApi += '\n';
|
||||
if (!!this.data.androidApp) {
|
||||
this.configureApi += `\nstatic const thingsboardAndroidAppSecret = '${this.data.androidApp.appSecret}';`;
|
||||
this.renameCommands.push(`rename setBundleId --targets android --value "${this.data.androidApp.pkgName}"`);
|
||||
}
|
||||
if (!!this.data.iosApp) {
|
||||
this.configureApi += `\nstatic const thingsboardIOSAppSecret = '${this.data.iosApp.appSecret}';`;
|
||||
this.renameCommands.push(`rename setBundleId --targets ios --value "${this.data.iosApp.pkgName}"`);
|
||||
}
|
||||
}
|
||||
if (this.setApplication) {
|
||||
if (this.data.androidApp?.pkgName === this.data.iosApp?.pkgName) {
|
||||
this.renameCommands.push(`rename setBundleId --targets android, ios --value "${this.data.androidApp.pkgName}"`);
|
||||
} else {
|
||||
if (!!this.data.androidApp) {
|
||||
this.renameCommands.push(`rename setBundleId --targets android --value "${this.data.androidApp.pkgName}"`);
|
||||
}
|
||||
if (!!this.data.iosApp) {
|
||||
this.renameCommands.push(`rename setBundleId --targets ios --value "${this.data.iosApp.pkgName}"`);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -3548,7 +3548,7 @@
|
||||
"configure-package-title": "Configure application package",
|
||||
"configure-package-text": "You can manually change the Application Package or use third party CLI tool.",
|
||||
"configure-package-text-install": "To install the Rename CLI Tool, execute the following command:",
|
||||
"configure-package-run-commands": "Run these commands in the root directory of your projectЖ"
|
||||
"configure-package-run-commands": "Run these commands in the root directory of your project:"
|
||||
}
|
||||
},
|
||||
"notification": {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user