fix: deck columns
This commit is contained in:
parent
065b889ccb
commit
bb0cc000ae
3 changed files with 13 additions and 18 deletions
|
@ -12,15 +12,19 @@
|
|||
>{{ column.name }}</template
|
||||
>
|
||||
|
||||
<XNotes :pagination="pagination" />
|
||||
<XNotifications
|
||||
:include-types="['mention', 'reply']"
|
||||
:unread-only="false"
|
||||
:direct-only="true"
|
||||
/>
|
||||
</XColumn>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import {} from "vue";
|
||||
import XColumn from "./column.vue";
|
||||
import XNotifications from "@/components/MkNotifications.vue";
|
||||
import type { Column } from "./deck-store";
|
||||
import XNotes from "@/components/MkNotes.vue";
|
||||
|
||||
defineProps<{
|
||||
column: Column;
|
||||
|
@ -30,12 +34,4 @@ defineProps<{
|
|||
const emit = defineEmits<{
|
||||
(ev: "parent-focus", direction: "up" | "down" | "left" | "right"): void;
|
||||
}>();
|
||||
|
||||
const pagination = {
|
||||
endpoint: "notes/mentions" as const,
|
||||
limit: 10,
|
||||
params: {
|
||||
visibility: "specified",
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
|
@ -9,15 +9,19 @@
|
|||
>{{ column.name }}</template
|
||||
>
|
||||
|
||||
<XNotes :pagination="pagination" />
|
||||
<XNotifications
|
||||
:include-types="['mention', 'reply']"
|
||||
:unread-only="false"
|
||||
:direct-only="false"
|
||||
/>
|
||||
</XColumn>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import {} from "vue";
|
||||
import XColumn from "./column.vue";
|
||||
import XNotifications from "@/components/MkNotifications.vue";
|
||||
import type { Column } from "./deck-store";
|
||||
import XNotes from "@/components/MkNotes.vue";
|
||||
|
||||
defineProps<{
|
||||
column: Column;
|
||||
|
@ -27,9 +31,4 @@ defineProps<{
|
|||
const emit = defineEmits<{
|
||||
(ev: "parent-focus", direction: "up" | "down" | "left" | "right"): void;
|
||||
}>();
|
||||
|
||||
const pagination = {
|
||||
endpoint: "notes/mentions" as const,
|
||||
limit: 10,
|
||||
};
|
||||
</script>
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
>{{ column.name }}</template
|
||||
>
|
||||
|
||||
<XNotifications :include-types="column.includingTypes" />
|
||||
<XNotifications :include-types="column.includingTypes" :direct-only="false" />
|
||||
</XColumn>
|
||||
</template>
|
||||
|
||||
|
|
Loading…
Reference in a new issue