forked from syncthing/syncthing
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gui: Mark devices that haven't connected for a long time (fixes synct…
…hing#7703) Currently, a disconnected device is marked as just "Disconnected" without any consideration whether it has been in the state for just a short period of time or rather much longer. This commit adds a new state called "Disconnected (Stale)" which is shown for devices that have been disconnected for longer than a month. It also changes the "Last seen" information, so that "Never" is used only when the device hasn't connected at all, and it displays the exact date otherwise. Additionally, when the date is older than 1 month, it shows that information below in orange, and when it is older than a year, it shows it in red. This provides the user with a visual clue that something may potentially be wrong and needs their intervention. Signed-off-by: Tomasz Wilczyński <twilczynski@naver.com>
- Loading branch information
1 parent
78be722
commit 23887d4
Showing
2 changed files
with
20 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters