File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 11
11
type =" button"
12
12
class =" btn btn-basic btn-sm"
13
13
@click =" getPage(view['hydra:first'])"
14
- :disabled =" !view['hydra:first ']"
14
+ :disabled =" !view['hydra:previous ']"
15
15
>First</button >
16
16
  ;
17
17
<button
30
30
<button
31
31
type =" button" class =" btn btn-basic btn-sm"
32
32
@click =" getPage(view['hydra:last'])"
33
- :disabled =" ! view['hydra:last']"
33
+ :disabled =" view['hydra:last']"
34
34
>Last</button >
35
35
  ;
36
36
</span >
85
85
' loading' ,
86
86
' view'
87
87
]),
88
- methods: mapActions ([
89
- ' getPage'
90
- ] ),
88
+ methods: mapActions ({
89
+ getPage: ' getItems '
90
+ } ),
91
91
created () {
92
92
this .$store .dispatch (' {{{lc}}}/list/getItems' )
93
93
}
Original file line number Diff line number Diff line change @@ -37,10 +37,10 @@ const getters = {
37
37
} ;
38
38
39
39
const actions = {
40
- getItems ( { commit } ) {
40
+ getItems ( { commit } , page = '/{{{ name }}}' ) {
41
41
commit ( loading ( true ) ) ;
42
42
43
- { { { lc } } } Fetch ( '/{{{ name }}}' )
43
+ { { { lc } } } Fetch ( page )
44
44
. then ( response => response . json ( ) )
45
45
. then ( data => {
46
46
commit ( loading ( false ) ) ;
You can’t perform that action at this time.
0 commit comments