Skip to content
代码片段 群组 项目
提交 b2337b5f 编辑于 作者: Nataliia Radina's avatar Nataliia Radina 提交者: Paul Gascou-Vaillancourt
浏览文件

Change copy for public snippets in projects

Changelog: changed
上级 39123fb7
No related branches found
No related tags found
无相关合并请求
......@@ -21,6 +21,9 @@ export const SNIPPET_VISIBILITY = {
label: __('Public'),
icon: 'earth',
description: __('The snippet can be accessed without any authentication.'),
description_project: __(
'The snippet can be accessed without any authentication. To embed snippets, a project must be public.',
),
},
};
......
......@@ -46284,6 +46284,9 @@ msgstr ""
msgid "The snippet can be accessed without any authentication."
msgstr ""
 
msgid "The snippet can be accessed without any authentication. To embed snippets, a project must be public."
msgstr ""
msgid "The snippet is visible only to me."
msgstr ""
 
......@@ -134,6 +134,17 @@ describe('Snippet Visibility Edit component', () => {
description: SNIPPET_VISIBILITY.private.description_project,
});
});
it('when project snippet, renders special public description', () => {
createComponent({ propsData: { isProjectSnippet: true }, deep: true });
expect(findRadiosData()[2]).toEqual({
value: VISIBILITY_LEVEL_PUBLIC_STRING,
icon: SNIPPET_VISIBILITY.public.icon,
text: SNIPPET_VISIBILITY.public.label,
description: SNIPPET_VISIBILITY.public.description_project,
});
});
});
});
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册