kopia lustrzana https://github.com/nextcloud/social
Use mastodon's label for visibilities description
Signed-off-by: Louis Chemineau <louis@chmn.me>pull/1715/head
rodzic
896108ea40
commit
7eb659a90d
|
@ -5,7 +5,7 @@ import { translate as t } from '@nextcloud/l10n'
|
||||||
* @typedef {object} Visibility
|
* @typedef {object} Visibility
|
||||||
* @property {string} id - One of 'public', 'followers', 'direct', 'unlisted'
|
* @property {string} id - One of 'public', 'followers', 'direct', 'unlisted'
|
||||||
* @property {string} text - Short label of the visibility
|
* @property {string} text - Short label of the visibility
|
||||||
* @property {string} longtext - Description of the visibility
|
* @property {string} description - Description of the visibility
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/** @type {Visibility[]} */
|
/** @type {Visibility[]} */
|
||||||
|
@ -13,21 +13,21 @@ export default [
|
||||||
{
|
{
|
||||||
id: 'public',
|
id: 'public',
|
||||||
text: t('social', 'Public'),
|
text: t('social', 'Public'),
|
||||||
longtext: t('social', 'Post to public timelines'),
|
description: t('social', 'Visible for all'),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'unlisted',
|
id: 'unlisted',
|
||||||
text: t('social', 'Unlisted'),
|
text: t('social', 'Unlisted'),
|
||||||
longtext: t('social', 'Do not post to public timelines'),
|
description: t('social', 'Visible for all, but opted-out of discovery features'),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'followers',
|
id: 'followers',
|
||||||
text: t('social', 'Followers'),
|
text: t('social', 'Followers'),
|
||||||
longtext: t('social', 'Post to followers only'),
|
description: t('social', 'Visible to followers only'),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'direct',
|
id: 'direct',
|
||||||
text: t('social', 'Direct'),
|
text: t('social', 'Direct'),
|
||||||
longtext: t('social', 'Post to mentioned users only'),
|
description: t('social', 'Visible to mentioned users only'),
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
<template #icon>
|
<template #icon>
|
||||||
<VisibilityIcon :visibility="visibilityDetails.id" :size="20" />
|
<VisibilityIcon :visibility="visibilityDetails.id" :size="20" />
|
||||||
</template>
|
</template>
|
||||||
{{ visibilityDetails.longtext }}
|
{{ visibilityDetails.description }}
|
||||||
</NcActionButton>
|
</NcActionButton>
|
||||||
</NcActions>
|
</NcActions>
|
||||||
</template>
|
</template>
|
||||||
|
|
Ładowanie…
Reference in New Issue