diff --git a/src/app/component/teams-groups-editor/selectable-list.component.html b/src/app/component/teams-groups-editor/selectable-list.component.html index 13539642..c50194fb 100644 --- a/src/app/component/teams-groups-editor/selectable-list.component.html +++ b/src/app/component/teams-groups-editor/selectable-list.component.html @@ -35,19 +35,39 @@

{{ title }}

- {{ name }} + {{ name }} - - + diff --git a/src/app/component/teams-groups-editor/selectable-list.component.ts b/src/app/component/teams-groups-editor/selectable-list.component.ts index d92fd40a..1cafbe63 100644 --- a/src/app/component/teams-groups-editor/selectable-list.component.ts +++ b/src/app/component/teams-groups-editor/selectable-list.component.ts @@ -61,6 +61,17 @@ export class SelectableListComponent { }); } + handleDoubleClick(name: string) { + if (!this.canEdit) { + return; + } + if (!this.editMode) { + this.editMode = true; + this.editModeChange.emit(this.editMode); + } + this.startEditItem(name); + } + cancelEditItem(oldName: string) { console.log(`${perfNow()}: Cancel editing: ${oldName}`); this.editingName = '';