Skip to content

Commit

Permalink
Migrate calendar (in progress)
Browse files Browse the repository at this point in the history
Signed-off-by: Grigory V <[email protected]>
  • Loading branch information
GVodyanov committed Jan 29, 2024
1 parent 73caffa commit a84e0d7
Show file tree
Hide file tree
Showing 3 changed files with 805 additions and 630 deletions.
5 changes: 3 additions & 2 deletions src/components/AppNavigation/AppointmentConfigList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ import logger from '../../utils/logger.js'
import NoEmailAddressWarning from '../AppointmentConfigModal/NoEmailAddressWarning.vue'
import useAppointmentConfigsStore from '../../store/appointmentConfigs.js'
import usePrincipalsStore from '../../store/principals.js'
import useCalendarsStore from '../../store/calendars.js'

Check failure on line 74 in src/components/AppNavigation/AppointmentConfigList.vue

View workflow job for this annotation

GitHub Actions / eslint

Parse errors in imported module '../../store/calendars.js': Unexpected token, expected "{" (60:7) (60:7)

Check failure on line 74 in src/components/AppNavigation/AppointmentConfigList.vue

View workflow job for this annotation

GitHub Actions / eslint

Parse errors in imported module '../../store/calendars.js': Unexpected token, expected "{" (60:7) (60:7)

Check warning on line 74 in src/components/AppNavigation/AppointmentConfigList.vue

View workflow job for this annotation

GitHub Actions / eslint

Parse errors in imported module '../../store/calendars.js': Unexpected token, expected "{" (60:7) (60:7)

Check warning on line 74 in src/components/AppNavigation/AppointmentConfigList.vue

View workflow job for this annotation

GitHub Actions / eslint

Parse errors in imported module '../../store/calendars.js': Unexpected token, expected "{" (60:7) (60:7)
import { mapStores } from 'pinia'

export default {
Expand All @@ -89,15 +90,15 @@ export default {
}
},
computed: {
...mapStores(usePrincipalsStore()),
...mapStores(usePrincipalsStore, useCalendarsStore),
configs() {
const store = useAppointmentConfigsStore()
return store.allConfigs
},
defaultConfig() {
return AppointmentConfig.createDefault(
this.calendarUrlToUri(this.$store.getters.ownSortedCalendars[0].url),
this.$store.getters.scheduleInbox,
this.calendarsStore.scheduleInbox,
this.$store.getters.getResolvedTimezone,
)
},
Expand Down
5 changes: 3 additions & 2 deletions src/components/AppointmentConfigModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ import VisibilitySelect from './AppointmentConfigModal/VisibilitySelect.vue'
import logger from '../utils/logger.js'
import Confirmation from './AppointmentConfigModal/Confirmation.vue'
import useAppointmentConfigsStore from '../store/appointmentConfigs.js'
import useCalendarsStore from '../store/calendars.js'

Check failure on line 169 in src/components/AppointmentConfigModal.vue

View workflow job for this annotation

GitHub Actions / eslint

Parse errors in imported module '../store/calendars.js': Unexpected token, expected "{" (60:7) (60:7)

Check failure on line 169 in src/components/AppointmentConfigModal.vue

View workflow job for this annotation

GitHub Actions / eslint

Parse errors in imported module '../store/calendars.js': Unexpected token, expected "{" (60:7) (60:7)

Check warning on line 169 in src/components/AppointmentConfigModal.vue

View workflow job for this annotation

GitHub Actions / eslint

Parse errors in imported module '../store/calendars.js': Unexpected token, expected "{" (60:7) (60:7)

Check warning on line 169 in src/components/AppointmentConfigModal.vue

View workflow job for this annotation

GitHub Actions / eslint

Parse errors in imported module '../store/calendars.js': Unexpected token, expected "{" (60:7) (60:7)

export default {
name: 'AppointmentConfigModal',
Expand Down Expand Up @@ -210,7 +211,7 @@ export default {
'ownSortedCalendars',
'isTalkEnabled',
]),
...mapStores(useAppointmentConfigsStore()),
...mapStores(useAppointmentConfigsStore, useCalendarsStore),
formTitle() {
if (this.isNew) {
return this.$t('calendar', 'Create appointment')
Expand Down Expand Up @@ -247,7 +248,7 @@ export default {
defaultConfig() {
return AppointmentConfig.createDefault(
this.calendarUrlToUri(this.$store.getters.ownSortedCalendars[0].url),
this.$store.getters.scheduleInbox,
this.calendarsStore.scheduleInbox,
this.$store.getters.getResolvedTimezone,
)
},
Expand Down
Loading

0 comments on commit a84e0d7

Please sign in to comment.