From 45edad867c5a05745f9e5004946db1e3a88d7e6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Colomb?= Date: Mon, 7 Jun 2021 10:29:24 +0200 Subject: [PATCH] all: Allow dismissing pending devices / folders without ignoring (fixes #7700) (#7712) --- gui/default/assets/lang/lang-en.json | 3 + gui/default/index.html | 10 +- .../syncthing/core/syncthingController.js | 9 ++ lib/api/api.go | 35 ++++ lib/db/observed.go | 17 +- lib/model/mocks/model.go | 150 ++++++++++++++++++ lib/model/model.go | 93 +++++++++-- 7 files changed, 294 insertions(+), 23 deletions(-) diff --git a/gui/default/assets/lang/lang-en.json b/gui/default/assets/lang/lang-en.json index 34c2e5c45..4905337cf 100644 --- a/gui/default/assets/lang/lang-en.json +++ b/gui/default/assets/lang/lang-en.json @@ -94,6 +94,8 @@ "Discovered": "Discovered", "Discovery": "Discovery", "Discovery Failures": "Discovery Failures", + "Dismiss": "Dismiss", + "Do not add it to the ignore list, so this notification may recurr.": "Do not add it to the ignore list, so this notification may recurr.", "Do not restore": "Do not restore", "Do not restore all": "Do not restore all", "Do you want to enable watching for changes for all your folders?": "Do you want to enable watching for changes for all your folders?", @@ -227,6 +229,7 @@ "Periodic scanning at given interval and disabled watching for changes": "Periodic scanning at given interval and disabled watching for changes", "Periodic scanning at given interval and enabled watching for changes": "Periodic scanning at given interval and enabled watching for changes", "Periodic scanning at given interval and failed setting up watching for changes, retrying every 1m:": "Periodic scanning at given interval and failed setting up watching for changes, retrying every 1m:", + "Permanently add it to the ignore list, suppressing further notifications.": "Permanently add it to the ignore list, suppressing further notifications.", "Permissions": "Permissions", "Please consult the release notes before performing a major upgrade.": "Please consult the release notes before performing a major upgrade.", "Please set a GUI Authentication User and Password in the Settings dialog.": "Please set a GUI Authentication User and Password in the Settings dialog.", diff --git a/gui/default/index.html b/gui/default/index.html index 2c42d3326..94d4982f3 100644 --- a/gui/default/index.html +++ b/gui/default/index.html @@ -209,10 +209,13 @@