В поле перечисления задач на принудительное обновление добавлены новые разделители
This commit is contained in:
parent
2ea0a192c0
commit
888a5184c7
1 changed files with 2 additions and 2 deletions
|
|
@ -40,9 +40,9 @@ export const KanbanBoards = observer((props: Props) => {
|
||||||
const onIssuesRefreshClick = (e: React.MouseEvent) => {
|
const onIssuesRefreshClick = (e: React.MouseEvent) => {
|
||||||
if (e.target !== e.currentTarget) return;
|
if (e.target !== e.currentTarget) return;
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
const rawInput = prompt("Force issues refresh (delimiters - space, comma, semicolon or tab)", "");
|
const rawInput = prompt("Force issues refresh (delimiters - space, comma, semicolon, tab or new line)", "");
|
||||||
if (!rawInput) return;
|
if (!rawInput) return;
|
||||||
const list = rawInput.split(" ,;\t").map(item => Number(item)).filter(item => Number.isFinite(item));
|
const list = rawInput.split(/[ ,;\t\n\r]/).map(item => Number(item)).filter(item => (Number.isFinite(item) && item > 0));
|
||||||
if (!list) return;
|
if (!list) return;
|
||||||
axios.post(`/redmine-event-emitter/append-issues`, list);
|
axios.post(`/redmine-event-emitter/append-issues`, list);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue