- Nella Lavagna, cliccando sul nome dell'invitato, compaiono le sue informazioni sugli step rimasti, in dettaglio.
- Ogni utente puo' cosi scegliere di regalare un proprio invitato, cliccando sull'invitato, scrivendo l'username del destinatario e premendo il bottone 'Regala Invitato'. Al destinatario gli arriverà un messaggio sul Bot Telegram che indica che gli è stato regalato un'invitato.
This commit is contained in:
@@ -9,10 +9,13 @@ import { CTitleBanner } from '@components'
|
||||
import { CCardState } from '../CCardState'
|
||||
import { UserStore } from '../../store/Modules'
|
||||
import { GlobalStore } from '../../store'
|
||||
import { CCopyBtn } from '../CCopyBtn'
|
||||
|
||||
import { date } from 'quasar'
|
||||
|
||||
@Component({
|
||||
name: 'CStatusReg',
|
||||
components: { CTitleBanner, CCardState }
|
||||
components: { CTitleBanner, CCardState, CCopyBtn }
|
||||
})
|
||||
|
||||
export default class CNextZoom extends MixinBase {
|
||||
@@ -27,4 +30,18 @@ export default class CNextZoom extends MixinBase {
|
||||
return tools.getstrTime(this.listacalzoom[0].date_start)
|
||||
}
|
||||
}
|
||||
|
||||
get showzoom() {
|
||||
if (GlobalStore.state.calzoom.length > 0) {
|
||||
const mydate = GlobalStore.state.calzoom.slice(-1)[0].date_start
|
||||
const mydate_end = GlobalStore.state.calzoom.slice(-1)[0].date_end
|
||||
const datenow = tools.getDateNow()
|
||||
console.log('date.getDateDiff(datenow, mydate, \'minutes\')', date.getDateDiff(datenow, mydate, 'minutes'))
|
||||
// if begin is in the past, take the day now
|
||||
if ((date.getDateDiff(datenow, mydate, 'minutes') > -10) && (date.getDateDiff(datenow, mydate_end, 'minutes') < 0)) {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user