Repository navigation
gui: Refactor to make encryption diff smaller - #7049
Merged
Merged
Conversation
acolomb
added a commit
to acolomb/syncthing
that referenced
this pull request
Oct 24, 2020
Some accesses to the new $scope.devices object (instead of previously array) used wrong / inexistent names for the index variable.
imsodin
pushed a commit
that referenced
this pull request
Oct 26, 2020
acolomb
added a commit
to acolomb/syncthing
that referenced
this pull request
Nov 1, 2020
Another fallout from syncthing#7049.
This was referenced Nov 11, 2020
This was referenced Nov 27, 2020
This file contains hidden or 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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A large part of the gui diff in #6727 are refactors to make my live easier or prevent duplication. To implement the feature flag and keep the diff minimal, I factored out all those changes that do not change behaviour and that I consider useful even if encryption wouldn't be there:
Devices are now tracked as a map internally.
Use
$scope.currentSharingto track sharing changes instead of having "virtual attributes" on the device-/folderconfigs.Testing: Un-/Sharing folders/devices still works.