@ditojs/admin 1.19.0 → 1.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ditojs/admin",
|
|
3
|
-
"version": "1.19.
|
|
3
|
+
"version": "1.19.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Dito.js Admin is a schema based admin interface for Dito.js Server, featuring auto-generated views and forms and built with Vue.js",
|
|
6
6
|
"repository": "https://github.com/ditojs/dito/tree/master/packages/admin",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"not ie_mob > 0"
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@ditojs/ui": "^1.19.
|
|
40
|
+
"@ditojs/ui": "^1.19.1",
|
|
41
41
|
"@ditojs/utils": "^1.19.0",
|
|
42
42
|
"codeflask": "^1.4.1",
|
|
43
43
|
"filesize": "^10.0.5",
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"vite-plugin-vue2": "^2.0.2"
|
|
70
70
|
},
|
|
71
71
|
"types": "types",
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "a1ea63d36d6a971c3645f7f7245a277607cdbbb9"
|
|
73
73
|
}
|
package/src/types/TypeList.vue
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
:style="schema.style"
|
|
7
7
|
)
|
|
8
8
|
.dito-navigation(
|
|
9
|
-
v-if="scopes ||
|
|
9
|
+
v-if="scopes || hasPagination"
|
|
10
10
|
)
|
|
11
11
|
dito-scopes(
|
|
12
12
|
v-if="scopes"
|
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
// When there's only pagination without scopes, we need a good ol' spacer
|
|
17
17
|
// div, for the layout not to break...
|
|
18
18
|
.dito-spacer(
|
|
19
|
-
v-else-if="
|
|
19
|
+
v-else-if="hasPagination"
|
|
20
20
|
)
|
|
21
21
|
dito-pagination(
|
|
22
|
-
v-if="
|
|
22
|
+
v-if="hasPagination"
|
|
23
23
|
:query="query"
|
|
24
24
|
:limit="paginate"
|
|
25
25
|
:total="total || 0"
|
|
@@ -226,6 +226,10 @@ export default TypeComponent.register('list', {
|
|
|
226
226
|
},
|
|
227
227
|
|
|
228
228
|
computed: {
|
|
229
|
+
hasPagination() {
|
|
230
|
+
return this.paginate && this.total > this.paginate
|
|
231
|
+
},
|
|
232
|
+
|
|
229
233
|
hasListButtons() {
|
|
230
234
|
return !!(
|
|
231
235
|
this.buttonSchemas ||
|