Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

SideBar.vue 869B

1234567891011121314151617181920212223242526272829303132
  1. <template lang="pug">
  2. aside.sidebar.w-flex.column.pa8
  3. Messages(:matches="matches" :pid="pid")
  4. .spacer
  5. nav.temp-control-box
  6. input(v-model="switchToPID" @keyup.enter="$emit('updatePid', switchToPID)")
  7. button(@click="$emit('updatePid', switchToPID)") switch profile
  8. </template>
  9. <script>
  10. import { currentProfile } from '../services'
  11. import Messages from './Messages.vue'
  12. import { mixins } from '../utils'
  13. export default {
  14. components: { Messages },
  15. mixins: [mixins.pidMixin],
  16. data: () => ({
  17. switchToPID: null,
  18. }),
  19. computed: {
  20. profile: () => currentProfile,
  21. matches: () =>
  22. currentProfile.groupings.filter(g => g.grouping_type == 'match'),
  23. },
  24. mounted() {
  25. // Set the form to display the default pid set in Home.vue
  26. this.switchToPID = this.pid
  27. },
  28. }
  29. </script>