Skip to content

gui: Add confirmation dialog for revert/override (fixes #7520) - #7522

Merged
calmh merged 5 commits into
syncthing:mainfrom
imsodin:gui/revert-override-confirmation
Mar 26, 2021
Merged

calmh merged 5 commits into
syncthing:mainfrom
imsodin:gui/revert-override-confirmation

Conversation

@imsodin

@imsodin imsodin commented Mar 25, 2021 •

Copy link
Copy Markdown
Member

Generalises the confirmation dialog for deleting items added to receive-encrypted folders to also handle reverting/overriding receive/send-only folders (fixes #7520).

@imsodin imsodin linked an issue Mar 25, 2021 that may be closed by this pull request
<p>
<span translate>Warning</span>:</br>
<span ng-switch="revertOverrideParams.type">
<span ng-switch-when="override" translate>The folder content on other devices will be overwritten to become identical with this device. E.g. files not present here will be deleted on other devices.</span>

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.

Suggested change
<span ng-switch-when="override" translate>The folder content on other devices will be overwritten to become identical with this device. E.g. files not present here will be deleted on other devices.</span>
<span ng-switch-when="override" translate>The folder content on other devices will be overwritten to become identical with this device, e.g. files not present here will be deleted on other devices.</span>

The "E.g." at the beginning of the second sentences looks kind of weird. How about using a comma, or if the sentence becomes too long, then just starting the second sentence with writing "for example" or "for instance" in full?

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.

I think the second sentence is fine without the e.g. as well, just saying that files here/there will be deleted.

@calmh

calmh commented Mar 25, 2021

Copy link
Copy Markdown
Member

build.go translate

acolomb
acolomb previously approved these changes Mar 26, 2021

@acolomb acolomb 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.

I really like the unifying design. One minor nit-pick / question, ignore at will.

(I just looked at the code, no actual tryout.)

};

$scope.revertOverrideConfirmationModal = function (type, folderID) {
var params = {};

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.

Specific reason why you create the object empty first, instead of specifying the values in the initializer? (type and folderID)

@calmh
calmh merged commit 707001c into syncthing:main Mar 26, 2021
@imsodin
imsodin deleted the gui/revert-override-confirmation branch March 26, 2021 23:19
calmh added a commit to calmh/syncthing that referenced this pull request Apr 5, 2021
* main: (36 commits)
  etc: Fix start-limit parameters location in systemd units (ref syncthing#7439) (syncthing#7529)
  gui: Add confirmation dialog for revert/override (fixes syncthing#7520) (syncthing#7522)
  readme: Larger link for Fitt's law, still semantic (syncthing#7523)
  gui, man, authors: Update docs, translations, and contributors
  lib/model: Reset conn when enc token is missing (fixes syncthing#7198) (syncthing#7518)
  lib: Handle adding enc folders on an existing conn (fixes syncthing#7509) (syncthing#7510)
  cmd/strelaysrv: Increase default strelaysrv network buffer size (fixes syncthing#7514) (syncthing#7517)
  lib/ur: Prevent panic when blocksResult is nil (ref syncthing#7495) (syncthing#7515)
  lib/model: Encrypted fileinfo trailer needs to be in wire format (syncthing#7505)
  lib/model: Error check in test (syncthing#7508)
  lib/osutil: Fix raising max FDs on macOS (syncthing#7507)
  lib/connections: Silence "connected to myself" messages. (syncthing#7500)
  lib/osutil: Remove unused code
  all: Simplify some method calls (syncthing#7499)
  cmd/uraggregate: Ignore errors harder (syncthing#7498)
  cmd/syncthing: Error handling on upgrade (syncthing#7497)
  Remove unnecessary guard around `delete` (syncthing#7496)
  all: Remove miscellaneous vestigial code (syncthing#7495)
  all: Remove crypto/md5 (syncthing#7493)
  lib/api: Missing error handling in API delete-device (syncthing#7494)
  ...
@calmh calmh added this to the v1.15.1 milestone Apr 6, 2021
greatroar pushed a commit to greatroar/syncthing that referenced this pull request May 8, 2021
@calmh calmh added the frozen-due-to-age Issues closed and untouched for a long time, together with being locked for discussion label Aug 11, 2022
@syncthing syncthing locked and limited conversation to collaborators Aug 11, 2022
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.

Ask for confirmation before reverting/overriding a folder

4 participants