{{ i18n.ts.markAsReadAllNotifications }}
@@ -37,19 +56,22 @@ SPDX-License-Identifier: AGPL-3.0-only
diff --git a/packages/frontend/src/ui/deck/notifications-column.vue b/packages/frontend/src/ui/deck/notifications-column.vue
index 624c82834..8e0afa628 100644
--- a/packages/frontend/src/ui/deck/notifications-column.vue
+++ b/packages/frontend/src/ui/deck/notifications-column.vue
@@ -7,7 +7,7 @@ SPDX-License-Identifier: AGPL-3.0-only
{{ column.name }}
-
+
@@ -25,13 +25,13 @@ const props = defineProps<{
}>();
function func() {
- os.popup(defineAsyncComponent(() => import('@/components/MkNotificationSettingWindow.vue')), {
- includingTypes: props.column.includingTypes,
+ os.popup(defineAsyncComponent(() => import('@/components/MkNotificationSelectWindow.vue')), {
+ excludeTypes: props.column.excludeTypes,
}, {
done: async (res) => {
- const { includingTypes } = res;
+ const { excludeTypes } = res;
updateColumn(props.column.id, {
- includingTypes: includingTypes,
+ excludeTypes: excludeTypes,
});
},
}, 'closed');
diff --git a/packages/frontend/src/ui/deck/tl-column.vue b/packages/frontend/src/ui/deck/tl-column.vue
index 6481db6ea..554f067df 100644
--- a/packages/frontend/src/ui/deck/tl-column.vue
+++ b/packages/frontend/src/ui/deck/tl-column.vue
@@ -23,10 +23,11 @@ SPDX-License-Identifier: AGPL-3.0-only
@@ -52,6 +53,7 @@ const isLocalTimelineAvailable = (($i == null && instance.policies.ltlAvailable)
const isGlobalTimelineAvailable = (($i == null && instance.policies.gtlAvailable) || ($i != null && $i.policies.gtlAvailable));
const withRenotes = $ref(props.column.withRenotes ?? true);
const withReplies = $ref(props.column.withReplies ?? false);
+const onlyFiles = $ref(props.column.onlyFiles ?? false);
watch($$(withRenotes), v => {
updateColumn(props.column.id, {
@@ -65,6 +67,12 @@ watch($$(withReplies), v => {
});
});
+watch($$(onlyFiles), v => {
+ updateColumn(props.column.id, {
+ onlyFiles: v,
+ });
+});
+
onMounted(() => {
if (props.column.tl == null) {
setType();
@@ -111,6 +119,10 @@ const menu = [{
type: 'switch',
text: i18n.ts.withReplies,
ref: $$(withReplies),
+}, {
+ type: 'switch',
+ text: i18n.ts.fileAttachedOnly,
+ ref: $$(onlyFiles),
}];
diff --git a/packages/frontend/src/widgets/WidgetActivity.vue b/packages/frontend/src/widgets/WidgetActivity.vue
index e4fb5f291..1590f1799 100644
--- a/packages/frontend/src/widgets/WidgetActivity.vue
+++ b/packages/frontend/src/widgets/WidgetActivity.vue
@@ -21,7 +21,7 @@ SPDX-License-Identifier: AGPL-3.0-only