diff options
author | delvh <dev.lh@web.de> | 2023-10-02 16:52:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-02 14:52:18 +0000 |
commit | e709bc199fe33456c4ecd1cd28029bd31b529832 (patch) | |
tree | 48b380353129c8a308ef0cae38bc393beb8b9bbe /routers/web | |
parent | caef9f950334c95c4b6e2f362fa6766c317419ea (diff) | |
download | gitea-e709bc199fe33456c4ecd1cd28029bd31b529832.tar.gz gitea-e709bc199fe33456c4ecd1cd28029bd31b529832.zip |
Differentiate between `push` and `pull` `mirror sync in progress` (#27390)
Previously, if you had both a push and a pull mirror, the message did
not clarify if you've accidentally synchronized the wrong one.
Additionally fixed two typos that were encountered while debugging.
## Screenshots
![grafik](https://github.com/go-gitea/gitea/assets/51889757/164d5d20-728d-4365-9cb5-c37e95857cdf)
![grafik](https://github.com/go-gitea/gitea/assets/51889757/90bfffd2-abd4-4847-b8e2-db4231700a6d)
Diffstat (limited to 'routers/web')
-rw-r--r-- | routers/web/repo/setting/setting.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/web/repo/setting/setting.go b/routers/web/repo/setting/setting.go index 35c9098178..3cf58f308c 100644 --- a/routers/web/repo/setting/setting.go +++ b/routers/web/repo/setting/setting.go @@ -285,7 +285,7 @@ func SettingsPost(ctx *context.Context) { mirror_service.AddPullMirrorToQueue(repo.ID) - ctx.Flash.Info(ctx.Tr("repo.settings.mirror_sync_in_progress")) + ctx.Flash.Info(ctx.Tr("repo.settings.pull_mirror_sync_in_progress", repo.OriginalURL)) ctx.Redirect(repo.Link() + "/settings") case "push-mirror-sync": @@ -302,7 +302,7 @@ func SettingsPost(ctx *context.Context) { mirror_service.AddPushMirrorToQueue(m.ID) - ctx.Flash.Info(ctx.Tr("repo.settings.mirror_sync_in_progress")) + ctx.Flash.Info(ctx.Tr("repo.settings.push_mirror_sync_in_progress", m.RemoteAddress)) ctx.Redirect(repo.Link() + "/settings") case "push-mirror-update": |