Skip to content

Commit d6f7afb

Browse files
committed
Enable to show shortcut tooltip for pagination
1 parent 5c7fff0 commit d6f7afb

File tree

1 file changed

+34
-22
lines changed

1 file changed

+34
-22
lines changed

frontend/components/containers/annotation/Paginator.vue

Lines changed: 34 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,40 @@
33
<span>
44
{{ page }} of {{ total }}
55
</span>
6-
<v-btn
7-
v-shortkey.once="['arrowleft']"
8-
text
9-
:disabled="page===1"
10-
fab
11-
small
12-
@shortkey="prevPage"
13-
@click="prevPage"
14-
>
15-
<v-icon>mdi-chevron-left</v-icon>
16-
</v-btn>
17-
<v-btn
18-
v-shortkey.once="['arrowright']"
19-
text
20-
:disabled="page===total"
21-
fab
22-
small
23-
@shortkey="nextPage"
24-
@click="nextPage"
25-
>
26-
<v-icon>mdi-chevron-right</v-icon>
27-
</v-btn>
6+
<v-tooltip bottom>
7+
<template v-slot:activator="{ on }">
8+
<v-btn
9+
v-shortkey.once="['arrowleft']"
10+
text
11+
:disabled="page===1"
12+
fab
13+
small
14+
v-on="on"
15+
@shortkey="prevPage"
16+
@click="prevPage"
17+
>
18+
<v-icon>mdi-chevron-left</v-icon>
19+
</v-btn>
20+
</template>
21+
<span>←</span>
22+
</v-tooltip>
23+
<v-tooltip bottom>
24+
<template v-slot:activator="{ on }">
25+
<v-btn
26+
v-shortkey.once="['arrowright']"
27+
text
28+
:disabled="page===total"
29+
fab
30+
small
31+
v-on="on"
32+
@shortkey="nextPage"
33+
@click="nextPage"
34+
>
35+
<v-icon>mdi-chevron-right</v-icon>
36+
</v-btn>
37+
</template>
38+
<span>→</span>
39+
</v-tooltip>
2840
</div>
2941
</template>
3042

0 commit comments

Comments
 (0)