mirror of
https://github.com/go-gitea/gitea
synced 2024-11-09 07:37:04 +01:00
Update Warning message
This commit is contained in:
parent
2543f15e30
commit
3cf7472410
@ -109,7 +109,7 @@ export function initRepoEditor() {
|
|||||||
if (!warningDiv) {
|
if (!warningDiv) {
|
||||||
warningDiv = document.createElement('div');
|
warningDiv = document.createElement('div');
|
||||||
warningDiv.classList.add('ui', 'warning', 'message', 'flash-message', 'flash-warning');
|
warningDiv.classList.add('ui', 'warning', 'message', 'flash-message', 'flash-warning');
|
||||||
warningDiv.innerHTML = '<p>Parent directory contains leading or trailing whitespace.</p>';
|
warningDiv.innerHTML = '<p>Parent directory contains leading or trailing whitespace.</p><p>These whitespaces will be removed.</p>';
|
||||||
const inputContainer = document.querySelector('.repo-editor-header');
|
const inputContainer = document.querySelector('.repo-editor-header');
|
||||||
inputContainer.insertAdjacentElement('beforebegin', warningDiv);
|
inputContainer.insertAdjacentElement('beforebegin', warningDiv);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user