From a039f000d42edb9905aa5e2a790b632308a21630 Mon Sep 17 00:00:00 2001 From: Georgi Prodanov Date: Tue, 28 Feb 2017 16:48:39 +0200 Subject: [PATCH] #329526 Hide the ability to edit the group of an already created event. Fix typo in user groups section. Change app name according to UX decision. Fix arrow not visible in finalize event screen when more than 1 votes for a date. --- app/App_Resources/Android/values-v21/strings.xml | 4 ++-- app/App_Resources/Android/values/strings.xml | 4 ++-- .../editable-event/editable-event.component.css | 4 ++++ .../editable-event/editable-event.component.ts | 12 ++++++++---- .../editable-event/editable-event.template.html | 2 +- .../finalize-event/finalize-event.component.css | 2 +- .../finalize-event/finalize-event.template.html | 2 +- app/groups/groups/groups.template.html | 2 +- 8 files changed, 20 insertions(+), 12 deletions(-) diff --git a/app/App_Resources/Android/values-v21/strings.xml b/app/App_Resources/Android/values-v21/strings.xml index 6dd2721..b36e419 100644 --- a/app/App_Resources/Android/values-v21/strings.xml +++ b/app/App_Resources/Android/values-v21/strings.xml @@ -1,5 +1,5 @@ - TeamUP - TeamUP + Team UP + Team UP diff --git a/app/App_Resources/Android/values/strings.xml b/app/App_Resources/Android/values/strings.xml index 6dd2721..b36e419 100644 --- a/app/App_Resources/Android/values/strings.xml +++ b/app/App_Resources/Android/values/strings.xml @@ -1,5 +1,5 @@ - TeamUP - TeamUP + Team UP + Team UP diff --git a/app/events/editable-event/editable-event.component.css b/app/events/editable-event/editable-event.component.css index 5f41c55..04460ce 100644 --- a/app/events/editable-event/editable-event.component.css +++ b/app/events/editable-event/editable-event.component.css @@ -73,3 +73,7 @@ TextView { border-bottom-width: 1; min-height: 30; } + +.group .field.readonly { + border-bottom-width: 0; +} diff --git a/app/events/editable-event/editable-event.component.ts b/app/events/editable-event/editable-event.component.ts index b5e1798..3262a3a 100644 --- a/app/events/editable-event/editable-event.component.ts +++ b/app/events/editable-event/editable-event.component.ts @@ -20,7 +20,7 @@ export class EditableEventComponent implements OnInit{ currentUser: User; selectedGroup: Group; - private _isEdit: boolean = false; + isEdit: boolean = false; constructor( private _groupsService: GroupsService, @@ -34,7 +34,7 @@ export class EditableEventComponent implements OnInit{ if (typeof this.event.OpenForRegistration !== 'boolean') { this.event.OpenForRegistration = true; } - this._isEdit = this.event.Id !== undefined; // must be before prefilling group + this.isEdit = this.event.Id !== undefined; // must be before prefilling group if (this.userGroups.length === 1) { this.event.GroupId = this.userGroups[0].Id; } @@ -57,6 +57,10 @@ export class EditableEventComponent implements OnInit{ } onSelectGroup() { + if (this.isEdit) { + return; + } + this._openGroupModal() .then((selectedIndex: number) => { if (selectedIndex > -1) { @@ -89,7 +93,7 @@ export class EditableEventComponent implements OnInit{ private _validateDateOption(date: Date) { if (this._isDuplicateDate(date)) { return 'Date already added'; - } else if (!this._isEdit && date <= new Date()) { + } else if (!this.isEdit && date <= new Date()) { return 'Date is in the past'; } } @@ -109,7 +113,7 @@ export class EditableEventComponent implements OnInit{ private _openDateModal() { let ctx = { - isEdit: this._isEdit, + isEdit: this.isEdit, validator: this._validateDateOption.bind(this) }; return this._openModal(ctx, DateTimePickerModalComponent); diff --git a/app/events/editable-event/editable-event.template.html b/app/events/editable-event/editable-event.template.html index 5aa01d4..aabec82 100644 --- a/app/events/editable-event/editable-event.template.html +++ b/app/events/editable-event/editable-event.template.html @@ -14,7 +14,7 @@ - + diff --git a/app/events/finalize-event/finalize-event.component.css b/app/events/finalize-event/finalize-event.component.css index c2a84df..682cbb0 100644 --- a/app/events/finalize-event/finalize-event.component.css +++ b/app/events/finalize-event/finalize-event.component.css @@ -49,7 +49,7 @@ margin: 0; font-size: 14; color: #9c9c9c; - width: 70; + width: 80; } .count .if { diff --git a/app/events/finalize-event/finalize-event.template.html b/app/events/finalize-event/finalize-event.template.html index 3bfb096..06b6ef8 100644 --- a/app/events/finalize-event/finalize-event.template.html +++ b/app/events/finalize-event/finalize-event.template.html @@ -22,7 +22,7 @@ - + diff --git a/app/groups/groups/groups.template.html b/app/groups/groups/groups.template.html index df4504e..43abd7b 100644 --- a/app/groups/groups/groups.template.html +++ b/app/groups/groups/groups.template.html @@ -22,7 +22,7 @@ - +