Переглянути джерело

:recycle: a little more mixin sprinkling

tags/0.0.1
J 4 роки тому
джерело
коміт
cfc87d867d

+ 2
- 6
frontend/src/components/SideBar.vue Переглянути файл

@@ -11,15 +11,11 @@ aside.sidebar.p-1.f-col
11 11
 
12 12
 <script>
13 13
 import Messages from './Messages.vue'
14
+import { mixins } from '../utils'
14 15
 
15 16
 export default {
16 17
     components: { Messages }, 
17
-    props: {
18
-        pid: {
19
-            required: true,
20
-            type: Number
21
-        }
22
-    },
18
+    mixins: [ mixins.pidMixin ],
23 19
     data: () => ({
24 20
         switchToPID: null,
25 21
         matches: [

+ 1
- 1
frontend/src/views/HomeView.vue Переглянути файл

@@ -38,7 +38,7 @@ export default {
38 38
     components: { ProfileCardList },
39 39
     mixins: [ mixins.pidMixin, mixins.cardMixin ],
40 40
     methods: {
41
-        /** Gets called from pidMixins */
41
+        /** Gets called from cardMixin */
42 42
         async getCards() {
43 43
             this.loading = true
44 44
             try {

+ 1
- 1
frontend/src/views/MatchesView.vue Переглянути файл

@@ -38,7 +38,7 @@ export default {
38 38
     components: { ProfileCardList },
39 39
     mixins: [ mixins.pidMixin, mixins.cardMixin ],
40 40
     methods: {
41
-        /** Gets called from pidMixins */
41
+        /** Gets called from cardMixin */
42 42
         async getCards() {
43 43
             this.loading = true
44 44
             try {

Завантаження…
Відмінити
Зберегти