Skip to content

gui: Refactor to make encryption diff smaller - #7049

Merged
calmh merged 1 commit into
syncthing:mainfrom
imsodin:gui/encryption-refactors
Oct 23, 2020
Merged

calmh merged 1 commit into
syncthing:mainfrom
imsodin:gui/encryption-refactors

Conversation

@imsodin

@imsodin imsodin commented Oct 21, 2020

Copy link
Copy Markdown
Member

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.currentSharing to track sharing changes instead of having "virtual attributes" on the device-/folderconfigs.

Testing: Un-/Sharing folders/devices still works.

@calmh calmh left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

javascript lol

@calmh
calmh merged commit a20d85d into syncthing:main Oct 23, 2020
@imsodin
imsodin deleted the gui/encryption-refactors branch October 23, 2020 07:51
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.
@calmh calmh added this to the v1.12.0 milestone Oct 29, 2020
acolomb added a commit to acolomb/syncthing that referenced this pull request Nov 1, 2020
@st-review st-review added the frozen-due-to-age Issues closed and untouched for a long time, together with being locked for discussion label Oct 23, 2021
@syncthing syncthing locked and limited conversation to collaborators Oct 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

frozen-due-to-age Issues closed and untouched for a long time, together with being locked for discussion

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants