Skip to content

Open share settings when clicking 'shared with' #8972

Closed

Description

@BartG95

Each shared folder shows an 'Shared With' item, containing all the devices that the folder is shared with. I propose to open the dialog for changing the shared with setting, when clicking on any of those devices.

And maybe do something similar with the 'Folders' item for each device in the remote device list.

Activity

  1. added
    enhancement
    needs-triage
    on Jul 6, 2023
  2. added
    ui
    good first issue
    and removed
    needs-triage
    on Sep 10, 2023
  3. Paul-Stern commented on Dec 10, 2023

    @Paul-Stern

    Hello! Is the issue still present? I couldn't see any discussion or approval for changes to be made. If it is present and approved, I could try to fix it.

  4. acolomb commented on Dec 10, 2023

    @acolomb
    Member

    Yes, still present (the issue would be closed otherwise). It's waiting for someone to step up and contribute the implementation. I have it on my radar and might start on it when I have time someday, but don't hold your breath.

    You're very welcome to give it a go and make a Pull Request :-)

  5. added a commit that references this issue on Dec 11, 2023
    76a950f
  6. Paul-Stern commented on Dec 14, 2023

    @Paul-Stern

    This is supposedly a front-end issue, so I started diving in the controller, the index template and AngularJS. I tried some code and got errors. I guess the reason I can't just copy the code from 'Remote Device' block and paste to 'Folders' block is that they are in different scopes. Do I get it right and are there any hints for a newcomer on how to solve the issue easily (as it doesn't seem huge)?

  7. added a commit that references this issue on Dec 15, 2023
    b250650
  8. acolomb commented on Dec 15, 2023

    @acolomb
    Member

    I think you're on the right track, thanks for trying to contribute. I've looked at your branch and I don't understand why you're wrapping a new function around editDeviceExisting()? The intention is just to open that dialog, ideally with the "Sharing" tab pre-selected. The former should work with the existing function. For the latter, look at how the "Reduced by ignore patterns" link does it, should be portable to devices as well.

  9. Paul-Stern commented on Dec 16, 2023

    @Paul-Stern

    The reason I'm not trying to use editDeviceExisting() directly is that it gives back an error:

    Error: $scope.currentDevice.addresses is undefined
    

    I couldn't quite catch why it occurs here and why it doesn't in the 'Remote Devices' context. Maybe I should somehow use discoveryCache[device.deviceID].addresses but I am not sure where and how exactly.

  10. added 2 commits that reference this issue on Dec 16, 2023
    64caf22
    08b0dc1
  11. acolomb commented on Dec 16, 2023

    @acolomb
    Member

    I'd guess that the argument you're passing to the function is different. If you look at the config.xml, there are two different <device> elements. One which holds all the device configurations and it gets used (through JSON) in the device editing modal case. The other one is just a reference below a <folder> element, where details such as the addresses are not repeated. That is what you're iterating through in the "shared with" case. So when clicking the link, you need to get the real device config to pass to the function. Like it is done with deviceName as well.

    Just add some logging to that function to see the difference in objects being passed as argument. You definitely don't need to fill in the details yourself.

  12. acolomb commented on Mar 5, 2024

    @acolomb
    Member

    @Paul-Stern are you still planning to work on this?

  13. added a commit that references this issue on Mar 15, 2024
    64f753a
  14. added a commit that references this issue on Mar 17, 2024
    7e4e65e
  15. added this to the v1.27.5 milestone on Mar 25, 2024
  16. bugith commented on Mar 26, 2024

    @bugith

    The implementation is not the one @BartG95 & @Paul-Stern described in OP: https://forum.syncthing.net/t/shared-with-settings-implementation/21855
    Click any link in Folders pane should direct user to Edit Folder dialog "Sharing" tab, NOT General tab in Edit Device. As it works today it only allows to unshare this folder (or any other, or any other setting) within the clicked device.
    [EDIT] Okay, I did a fork and try my first contribution...

  17. added a commit that references this issue on Mar 27, 2024
    14b0eaf
  18. added 2 commits that reference this issue on Jul 7, 2024
    685d17e
    199e176
  19. added
    frozen-due-to-age
    on Apr 9, 2025
  20. locked and limited conversation to collaborators on Apr 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementfrozen-due-to-agegood first issueui

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions