File tree 1 file changed +9
-6
lines changed
1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change 77
77
</svg >
78
78
Mark all read
79
79
</a >
80
+ <div class =" pagination-slide" v-if =" mentionData?.prev || mentionData?.next" >
81
+ <div class =" pagination-controls" >
82
+ <button @click =" pageResults(-1)" :disabled =" !mentionData?.prev" >❮ ; Prev</button >
83
+ <div class =" page" >{{currentPage}}</div >
84
+ <button @click =" pageResults(1)" :disabled =" !mentionData?.next" >Next ❯ ; </button >
85
+ </div >
86
+ </div >
80
87
</div >
81
88
</div >
82
- <div class =" pagination-simple" v-if =" mentionData?.prev || mentiondata?.next" >
83
- <button @click =" pageResults(-1)" :disabled =" !mentionData?.prev" >❮ ; Prev</button >
84
- <button @click =" pageResults(1)" :disabled =" !mentionData?.next" >Next ❯ ; </button >
85
- </div >
86
89
</template >
87
90
88
91
<script >
89
- import { reactive , toRefs } from ' vue'
92
+ import { reactive , toRefs , computed } from ' vue'
90
93
import { mentionsApi } from ' @/api'
91
94
import { localStoragePrefs } from ' @/composables/stores/prefs'
92
95
import humanDate from ' @/composables/filters/humanDate'
@@ -139,7 +142,7 @@ export default {
139
142
const $router = useRouter ()
140
143
141
144
const v = reactive ({
142
- currentPage: Number ($route .query .page ) || 1 ,
145
+ currentPage: computed (() => Number ($route .query .page ) || 1 ) ,
143
146
mentionData: null ,
144
147
defaultAvatar: window .default_avatar ,
145
148
defaultAvatarShape: window .default_avatar_shape ,
You can’t perform that action at this time.
0 commit comments