forked from Mirrors/elk
fix: list should be user-only (#1581)
This commit is contained in:
parent
e58d09b6cc
commit
fc706f9050
6 changed files with 23 additions and 4 deletions
|
@ -64,7 +64,7 @@ async function removeList() {
|
||||||
await nextTick()
|
await nextTick()
|
||||||
|
|
||||||
const confirmDelete = await openConfirmDialog({
|
const confirmDelete = await openConfirmDialog({
|
||||||
title: t('confirm.delete_list.title'),
|
title: t('confirm.delete_list.title', [list.title]),
|
||||||
confirm: t('confirm.delete_list.confirm'),
|
confirm: t('confirm.delete_list.confirm'),
|
||||||
cancel: t('confirm.delete_list.cancel'),
|
cancel: t('confirm.delete_list.cancel'),
|
||||||
})
|
})
|
||||||
|
|
|
@ -32,7 +32,7 @@ const { notifications } = useNotifications()
|
||||||
<NavSideItem :text="$t('nav.explore')" :to="isHydrated ? `/${currentServer}/explore` : '/explore'" icon="i-ri:hashtag" :command="command" />
|
<NavSideItem :text="$t('nav.explore')" :to="isHydrated ? `/${currentServer}/explore` : '/explore'" icon="i-ri:hashtag" :command="command" />
|
||||||
<NavSideItem :text="$t('nav.local')" :to="isHydrated ? `/${currentServer}/public/local` : '/public/local'" icon="i-ri:group-2-line " :command="command" />
|
<NavSideItem :text="$t('nav.local')" :to="isHydrated ? `/${currentServer}/public/local` : '/public/local'" icon="i-ri:group-2-line " :command="command" />
|
||||||
<NavSideItem :text="$t('nav.federated')" :to="isHydrated ? `/${currentServer}/public` : '/public'" icon="i-ri:earth-line" :command="command" />
|
<NavSideItem :text="$t('nav.federated')" :to="isHydrated ? `/${currentServer}/public` : '/public'" icon="i-ri:earth-line" :command="command" />
|
||||||
<NavSideItem :text="$t('nav.lists')" :to="`/${currentServer}/lists`" icon="i-ri:list-check" :command="command" />
|
<NavSideItem :text="$t('nav.lists')" :to="`/${currentServer}/lists`" icon="i-ri:list-check" user-only :command="command" />
|
||||||
|
|
||||||
<div shrink hidden sm:block mt-4 />
|
<div shrink hidden sm:block mt-4 />
|
||||||
<NavSideItem :text="$t('nav.settings')" to="/settings" icon="i-ri:settings-3-line" :command="command" />
|
<NavSideItem :text="$t('nav.settings')" to="/settings" icon="i-ri:settings-3-line" :command="command" />
|
||||||
|
|
|
@ -119,7 +119,7 @@
|
||||||
"delete_list": {
|
"delete_list": {
|
||||||
"cancel": "Cancel",
|
"cancel": "Cancel",
|
||||||
"confirm": "Delete",
|
"confirm": "Delete",
|
||||||
"title": "Are you sure you want to delete this list?"
|
"title": "Are you sure you want to delete \"{0}\" list?"
|
||||||
},
|
},
|
||||||
"delete_posts": {
|
"delete_posts": {
|
||||||
"cancel": "Cancel",
|
"cancel": "Cancel",
|
||||||
|
|
|
@ -116,6 +116,11 @@
|
||||||
"cancel": "No",
|
"cancel": "No",
|
||||||
"confirm": "Si"
|
"confirm": "Si"
|
||||||
},
|
},
|
||||||
|
"delete_list": {
|
||||||
|
"cancel": "Cancelar",
|
||||||
|
"confirm": "Eliminar",
|
||||||
|
"title": "¿Está seguro de querer eliminar la lista \"{0}\"?"
|
||||||
|
},
|
||||||
"delete_posts": {
|
"delete_posts": {
|
||||||
"cancel": "Cancelar",
|
"cancel": "Cancelar",
|
||||||
"confirm": "Eliminar",
|
"confirm": "Eliminar",
|
||||||
|
@ -177,8 +182,14 @@
|
||||||
},
|
},
|
||||||
"list": {
|
"list": {
|
||||||
"add_account": "Agregar cuenta a la lista",
|
"add_account": "Agregar cuenta a la lista",
|
||||||
|
"cancel_edit": "Cancelar edición",
|
||||||
|
"create": "Crear",
|
||||||
|
"delete": "Eliminar esta lista",
|
||||||
|
"edit": "Ediar esta lista",
|
||||||
|
"list_title_placeholder": "Título de la lista",
|
||||||
"modify_account": "Modificar listas con cuenta",
|
"modify_account": "Modificar listas con cuenta",
|
||||||
"remove_account": "Eliminar cuenta de la lista"
|
"remove_account": "Eliminar cuenta de la lista",
|
||||||
|
"save": "Guardar"
|
||||||
},
|
},
|
||||||
"menu": {
|
"menu": {
|
||||||
"block_account": "Bloquear a {0}",
|
"block_account": "Bloquear a {0}",
|
||||||
|
|
|
@ -1,6 +1,10 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import type { CommonRouteTabOption } from '~/components/common/CommonRouteTabs.vue'
|
import type { CommonRouteTabOption } from '~/components/common/CommonRouteTabs.vue'
|
||||||
|
|
||||||
|
definePageMeta({
|
||||||
|
middleware: 'auth',
|
||||||
|
})
|
||||||
|
|
||||||
const list = $computed(() => useRoute().params.list as string)
|
const list = $computed(() => useRoute().params.list as string)
|
||||||
const server = $computed(() => useRoute().params.server as string)
|
const server = $computed(() => useRoute().params.server as string)
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,10 @@
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import type { mastodon } from 'masto'
|
import type { mastodon } from 'masto'
|
||||||
|
|
||||||
|
definePageMeta({
|
||||||
|
middleware: 'auth',
|
||||||
|
})
|
||||||
|
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
|
|
||||||
const client = useMastoClient()
|
const client = useMastoClient()
|
||||||
|
|
Loading…
Reference in a new issue