Repository: syncthing/syncthing (language: go)

Issue:
Shared device names are missing from "Edit Folder -> Sharing"
![image](https://user-images.githubusercontent.com/5626656/171147007-d6ff10ab-8311-40d1-aa1c-2a4546e49bd8.png)

This affects the current `main` and the current RC (`v1.20.2-rc.2`). I think the problem is quite serious. It will probably cause a lot of complaints and reports if `v1.20.2` is released in this state.
Shared device names are missing from "Edit Folder -> Sharing"
![image](https://user-images.githubusercontent.com/5626656/171147007-d6ff10ab-8311-40d1-aa1c-2a4546e49bd8.png)

This affects the current `main` and the current RC (`v1.20.2-rc.2`). I think the problem is quite serious. It will probably cause a lot of complaints and reports if `v1.20.2` is released in this state.


Discussion / hints:
Good catch. That was an oversight when renaming a function in #8286.  Sorry, my bad.  A fix is imminent.
Should this issue be labeled with "skip-changelog"? The problem is present only in the RCs of v1.20.2.
Yeah. It's a bit late in the cycle, but the changes are small; I'll drop an .rc-3 tomorrow.
v1.20.2
Fixed in Edit Folder -> Sharing
But still not fixed in Edit Device -> Sharing
Good catch. That was an oversight when renaming a function in #8286.  Sorry, my bad.  A fix is imminent.
Should this issue be labeled with "skip-changelog"? The problem is present only in the RCs of v1.20.2.
Yeah. It's a bit late in the cycle, but the changes are small; I'll drop an .rc-3 tomorrow.
v1.20.2
Fixed in Edit Folder -> Sharing
But still not fixed in Edit Device -> Sharing

Fix patch:
diff --git a/gui/default/syncthing/device/editDeviceModalView.html b/gui/default/syncthing/device/editDeviceModalView.html
index 6cef431ca00..646a235d1d1 100644
--- a/gui/default/syncthing/device/editDeviceModalView.html
+++ b/gui/default/syncthing/device/editDeviceModalView.html
@@ -83,7 +83,7 @@
                   <a href="#" ng-click="selectAllSharedFolders(false)" translate>Deselect All</a></small>
               </p>
               <div class="form-group" ng-repeat="folder in currentSharing.shared">
-                <share-template selected="currentSharing.selected" encryption-passwords="currentSharing.encryptionPasswords" id="{{folder.id}}" label="{{folderLabelMarkUnaccepted(folder.id, currentDevice.deviceID)}}" folder-type="{{folder.type}}" untrusted="currentDevice.untrusted" />
+                <share-template selected="currentSharing.selected" encryption-passwords="currentSharing.encryptionPasswords" id="{{folder.id}}" label="{{folderLabelMarkRemoteState(folder.id, currentDevice.deviceID)}}" folder-type="{{folder.type}}" untrusted="currentDevice.untrusted" />
               </div>
               <p class="help-block" ng-if="deviceHasUnacceptedFolders(currentDevice)">
                 <sup>1</sup> <span translate>The remote device has not accepted sharing this folder.</span>


Test patch: