@@ -143,20 +143,34 @@
-
-
+
+
+
+
-
+
-
- {{ t('per_page') }}
-
-
+
+ {{ t('per_page') }}
+
+
+
+
+
+
+ {{ t('create_new') }}
+
+
+ {{ t('add_existing') }}
+
+
+
+
@@ -649,13 +663,15 @@ const selectAllowed = computed(() => {
gap: var(--v-sheet-padding);
.v-pagination {
- margin-top: var(--v-sheet-padding);
-
:deep(.v-button) {
display: inline-flex;
}
}
+ .table.v-pagination {
+ margin-top: var(--v-sheet-padding);
+ }
+
.spacer {
flex-grow: 1;
}
@@ -684,6 +700,10 @@ const selectAllowed = computed(() => {
}
}
}
+
+ &.list {
+ margin-top: 8px;
+ }
}
.item-link {
diff --git a/app/src/interfaces/list-o2m/index.ts b/app/src/interfaces/list-o2m/index.ts
index 410ee0012a..976121317d 100644
--- a/app/src/interfaces/list-o2m/index.ts
+++ b/app/src/interfaces/list-o2m/index.ts
@@ -169,6 +169,17 @@ export default defineInterface({
label: '$t:enable_search_filter',
},
width: 'half',
+ hidden: true,
+ conditions: [
+ {
+ rule: {
+ layout: {
+ _eq: 'table',
+ },
+ },
+ hidden: false,
+ },
+ ],
},
},
{
diff --git a/app/src/interfaces/list-o2m/list-o2m.vue b/app/src/interfaces/list-o2m/list-o2m.vue
index 8119ee9b48..c7cc1d6f95 100644
--- a/app/src/interfaces/list-o2m/list-o2m.vue
+++ b/app/src/interfaces/list-o2m/list-o2m.vue
@@ -4,7 +4,7 @@
-
+
@@ -142,20 +142,34 @@
-
-
+
+
+
+
-
+
-
- {{ t('per_page') }}
-
-
+
+ {{ t('per_page') }}
+
+
+
+
+
+
+ {{ t('create_new') }}
+
+
+ {{ t('add_existing') }}
+
+
+
+
@@ -601,13 +615,15 @@ const updateAllowed = computed(() => {
gap: var(--v-sheet-padding);
.v-pagination {
- margin-top: var(--v-sheet-padding);
-
:deep(.v-button) {
display: inline-flex;
}
}
+ .table.v-pagination {
+ margin-top: var(--v-sheet-padding);
+ }
+
.spacer {
flex-grow: 1;
}
@@ -636,6 +652,10 @@ const updateAllowed = computed(() => {
}
}
}
+
+ &.list {
+ margin-top: 8px;
+ }
}
.item-link {