Update from Git Manager GUI

This commit is contained in:
2026-03-28 00:03:52 +01:00
parent e4b1215aa7
commit d41865608f
3 changed files with 71 additions and 2 deletions

View File

@@ -3362,6 +3362,11 @@ async function loadGiteaRepos(preloadedData = null, requestId = null) {
}
async function loadRepoContents(owner, repo, path) {
// Projekttitel als Gravur unterhalb der Toolbar setzen (nur Repo-Name)
const gravurTitle = document.getElementById('project-gravur-title');
if (gravurTitle) {
gravurTitle.textContent = repo;
}
currentState.view = 'gitea-repo';
currentState.owner = owner;
currentState.repo = repo;
@@ -3403,9 +3408,26 @@ async function loadRepoContents(owner, repo, path) {
});
if (!res.ok) {
// Bei Fehler Gravur zurücksetzen
const gravurTitle = document.getElementById('project-gravur-title');
if (gravurTitle) {
gravurTitle.textContent = '';
}
showError('Error: ' + (res.error || 'Unknown error'));
return;
}
// Wenn zur Übersicht gewechselt wird, Gravur zurücksetzen
function resetProjectGravurTitle() {
const gravurTitle = document.getElementById('project-gravur-title');
if (gravurTitle) gravurTitle.textContent = '';
}
// Nach dem Laden der Repo-Liste oder beim Klick auf "Zurück" rufe resetProjectGravurTitle() auf
const origLoadRepos = loadRepos;
loadRepos = function(...args) {
resetProjectGravurTitle();
return origLoadRepos.apply(this, args);
};
const grid = $('explorerGrid');
if (!grid) return;