Skip to content
代码片段 群组 项目
未验证 提交 3cfcadca 编辑于 作者: Corentin Mors's avatar Corentin Mors
浏览文件

Fix typos here and there

上级 7388fd1a
No related branches found
标签 v1.3.1
无相关合并请求
......@@ -39,10 +39,10 @@ export const pollGitlab = (cb: Callback<boolean>) => {
}
if (!results.getSettings.token) {
return cb(new Error('No Gitlab token set, visit options.'));
return cb(new Error('No GitLab token set, visit options.'));
}
if (!results.getSettings.address) {
return cb(new Error('No Gitlab host address set, visit options.'));
return cb(new Error('No GitLab host address set, visit options.'));
}
const api = new Gitlab({
......
......@@ -33,7 +33,7 @@ const App = () => {
setGitlabAddress(settings.gitlabAddress ? settings.gitlabAddress : '');
setIsGitlabAddressInLocalStorage(settings.gitlabAddress);
setRefreshRate(settings.refreshRate ? settings.refreshRate : 40);
setDefaultTab(settings.defaultTab ? settings.defaultTab : '');
setDefaultTab(settings.defaultTab ? settings.defaultTab : 0);
});
}, []);
......@@ -83,23 +83,23 @@ const App = () => {
return (
<ThemeProvider theme={primer}>
<Text as="strong" mt={2}>
Using Gitlab Community Edition? (approvals are a premium feature)
Using GitLab Community Edition? (approvals are a premium feature)
</Text>
<br />
<label>
<input
type="checkbox"
name="gitlabCE"
value="Gitlab CE Mode"
value="GitLab CE Mode"
onChange={updateGitlabCE}
checked={gitlabCE ? true : false}
/>{' '}
Gitlab CE Mode
GitLab CE Mode
</label>
<br />
<br />
<Text as="strong" mt={2}>
Personal Gitlab Tuken (api + read_user)
Personal GitLab Token (api + read_user)
</Text>
<br />
<TextInput
......@@ -107,7 +107,7 @@ const App = () => {
variant={'small'}
name="gitlab-token"
value={gitlabToken}
placeholder="Personal Gitlab Token"
placeholder="Personal GitLab Token"
onChange={updateGitlabToken}
aria-label="gitlab-token"
/>{' '}
......@@ -115,7 +115,7 @@ const App = () => {
<br />
<br />
<Text as="strong" mt={2}>
Gitlab host address
GitLab host address
</Text>
<br />
<TextInput
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册