Browse Source

:recycle: updating artist type sort sidebar

tags/0.9.0
J 4 years ago
parent
commit
9904565a05
2 changed files with 15 additions and 3 deletions
  1. 14
    3
      vue-theme/src/components/sidebars/sidebar.vue
  2. 1
    0
      vue-theme/src/utils/helpers.js

+ 14
- 3
vue-theme/src/components/sidebars/sidebar.vue View File

60
             exhibitions-sidebar
60
             exhibitions-sidebar
61
         //- single layout Post sidebar
61
         //- single layout Post sidebar
62
         .shadow(v-if="type === 'post'")
62
         .shadow(v-if="type === 'post'")
63
+            h3.t-up sort {{ type }} by
64
+                ul.t-up
65
+                    li(v-for="option in sortOptions")
66
+                        router-link(:to="`/${type}/sorted/${sortTypes[option]}`")
67
+                            p {{ option }}
63
             exhibitions-sidebar
68
             exhibitions-sidebar
64
-            p 
69
+            br
65
             events-sidebar
70
             events-sidebar
66
 
71
 
67
 
72
 
104
                 'by material': `${sortTypes.material}`,
109
                 'by material': `${sortTypes.material}`,
105
                 'by artist': `${sortTypes.artist}`,
110
                 'by artist': `${sortTypes.artist}`,
106
                 'by episode': `${sortTypes.episode}`,
111
                 'by episode': `${sortTypes.episode}`,
107
-                'by artist type': `${sortTypes.artisttypes}`,
108
-                // 'by event type': `${sortTypes.eventtypes}`,
112
+                'by artist type': `${sortTypes.subtype}`,
113
+                'by event type': `${sortTypes.subtype}`,
114
+                'by post type': `${sortTypes.subtype}`,
109
                 // 'by exhibition type': `${sortTypes.exhibitiontypes}`,
115
                 // 'by exhibition type': `${sortTypes.exhibitiontypes}`,
110
             },
116
             },
111
         }
117
         }
122
                         Object.keys(this.sortTypes)[4],
128
                         Object.keys(this.sortTypes)[4],
123
                     ]
129
                     ]
124
                     break
130
                     break
131
+                case 'post':
132
+                    opts = [
133
+                        Object.keys(this.sortTypes)[6],
134
+                    ]
135
+                    break
125
                 case 'short':
136
                 case 'short':
126
                     opts = [
137
                     opts = [
127
                         Object.keys(this.sortTypes)[2],
138
                         Object.keys(this.sortTypes)[2],

+ 1
- 0
vue-theme/src/utils/helpers.js View File

11
     episode: 'by-episode',
11
     episode: 'by-episode',
12
     upcoming: 'by-upcoming',
12
     upcoming: 'by-upcoming',
13
     current: 'by-current',
13
     current: 'by-current',
14
+    subtype: 'by-type',
14
     currentAndUpcoming: 'by-current-and-upcoming',
15
     currentAndUpcoming: 'by-current-and-upcoming',
15
     past: 'by-past',
16
     past: 'by-past',
16
 }
17
 }

Loading…
Cancel
Save