#328674 Change error message for invalid GroupId and Location Name. #328714 Fix app orientation to portrait.
This commit is contained in:
Родитель
d95752214c
Коммит
f7cd075e5d
|
@ -27,6 +27,7 @@
|
|||
|
||||
<activity
|
||||
android:name="com.tns.NativeScriptActivity"
|
||||
android:screenOrientation="portrait"
|
||||
android:label="@string/title_activity_kimera"
|
||||
android:configChanges="keyboardHidden|orientation|screenSize"
|
||||
android:theme="@style/LaunchScreenTheme">
|
||||
|
|
|
@ -33,8 +33,6 @@
|
|||
<key>UISupportedInterfaceOrientations</key>
|
||||
<array>
|
||||
<string>UIInterfaceOrientationPortrait</string>
|
||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||
</array>
|
||||
<key>UISupportedInterfaceOrientations~ipad</key>
|
||||
<array>
|
||||
|
|
|
@ -162,10 +162,15 @@ export class EventsService {
|
|||
|
||||
validateEvent(event: Event): string {
|
||||
let errorMsg: string;
|
||||
let msgsMap = {
|
||||
'GroupId': 'Group',
|
||||
'OrganizerId': 'Organizer',
|
||||
'LocationName': 'Location Name'
|
||||
};
|
||||
|
||||
for (let fieldName of utilities.eventMandatoryFields) {
|
||||
if (!utilities.isNonemptyString(event[fieldName])) {
|
||||
errorMsg = `The field ${fieldName} is required`;
|
||||
errorMsg = `The field "${msgsMap[fieldName] || fieldName}" is required`;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче