- Delete Event with ask confirmation

- Fix dateStart only 1 view if is the same day
- Sending a message from the Event Page: to a user or to a "Event"
- Add button "Ask Info"
- Starting view msg into the messagepopup component
This commit is contained in:
Paolo Arena
2019-10-24 23:30:18 +02:00
parent c39f0d8486
commit 44305d8778
13 changed files with 508 additions and 180 deletions

View File

@@ -41,6 +41,29 @@ export interface IBookedEvent {
booked: boolean
}
export interface IOrigin {
userId?: string
page?: string
event_id?: string
infoevent?: string
}
export interface IDest {
idapp?: string
username?: string
}
export interface IMessage {
_id?: any
idapp?: string
origin?: IOrigin
dest?: IDest
message: string
datemsg?: Date
read?: boolean
deleted?: boolean
}
export interface IOperators {
username: string
name: string
@@ -78,6 +101,12 @@ export interface IBookedEventPage {
state: EState
}
export interface IMessagePage {
show: boolean
msg: IMessage
state: EState
}
export interface ICalendarState {
editable: boolean
eventlist: IEvents[]

View File

@@ -1,4 +1,5 @@
import { IToken } from 'model/other'
import { IMessage } from '@src/model/Calendar'
export const DefaultUser = <IUserState>{
email: '',
@@ -36,6 +37,7 @@ export interface IUserState {
isManager?: boolean
usersList?: IUserList[]
countusers?: number
msgs?: IMessage[]
}
export interface IUserList {