Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.
TypeScript cloud-alternativecollaborationcollaborative-editingdropboxfile-serverfile-sharingfile-storagefile-syncfull-text-searchhomelabnextcloudon-premiseopen-sourceprivacy-firstprivate-cloudrealtimesecureself-hostedstorage-serverwebdav
fix(frontend:files): prevent duplicate rename confirmation dialogs
johaven1459a311317c
diff --git a/frontend/src/app/common/directives/input-edit.directive.ts b/frontend/src/app/common/directives/input-edit.directive.tsindex c766e9f0..70c7b91b 100644--- a/frontend/src/app/common/directives/input-edit.directive.ts+++ b/frontend/src/app/common/directives/input-edit.directive.ts@@ -16,6 +16,7 @@ export class InputEditDirective implements OnInit {@Output() renamingInProgress = new EventEmitter<boolean>(true)private readonly elementRef = inject(ElementRef)private readonly renderer = inject(Renderer2)+ private editFinished = falseprivate dangerColor = '#dd4b39'private primaryColor = '#3c8dbc'@@ -90,6 +91,7 @@ export class InputEditDirective implements OnInit {}private validateInput() {+ if (this.editFinished) returnif (!this.elementRef.nativeElement.value) {this.setIncorrectForm()} else {@@ -114,6 +116,8 @@ export class InputEditDirective implements OnInit {}private disableEdit() {+ if (this.editFinished) return+ this.editFinished = truethis.setParentDraggable('true')this.renamingInProgress.emit(false)setTimeout(() => (this.inputObject.isRenamed = false), 100)