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