mirror of
https://github.com/OutlineFoundation/outline-server.git
synced 2026-10-22 04:21:00 +00:00
Make sure the UI is updated on rename
This commit is contained in:
parent
56bfbaac97
commit
0c83ee13de
1 changed files with 7 additions and 1 deletions
|
|
@ -740,8 +740,14 @@ export class ServerView extends DirMixin(PolymerElement) {
|
|||
newName: displayName,
|
||||
entry: {
|
||||
commitName: () => {
|
||||
accessKey.name = displayName;
|
||||
input.disabled = false;
|
||||
// Update accessKeyRows so the UI is updated.
|
||||
this.accessKeyRows = this.accessKeyRows.map((row) => {
|
||||
if (row.id !== accessKey.id) {
|
||||
return row
|
||||
}
|
||||
return {...row, name: displayName};
|
||||
});
|
||||
},
|
||||
revertName: () => {
|
||||
input.value = accessKey.name;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue