Minor frontend tweaks

This commit is contained in:
shamoon
2024-06-08 07:23:36 -07:00
parent 3d60a83f6c
commit 0a1fcffdc1
3 changed files with 17 additions and 33 deletions

View File

@@ -5,7 +5,6 @@ import { DocumentService } from 'src/app/services/rest/document.service'
import { PermissionsService } from 'src/app/services/permissions.service'
import { CdkDragDrop, moveItemInArray } from '@angular/cdk/drag-drop'
import { Subject, takeUntil } from 'rxjs'
import { tap } from 'rxjs/operators'
import { Document } from 'src/app/data/document'
@Component({

View File

@@ -1125,18 +1125,10 @@ export class DocumentDetailComponent
.pipe(first(), takeUntil(this.unsubscribeNotifier))
.subscribe({
next: () => {
if (modal.componentInstance.deleteOriginal) {
this.toastService.showInfo(
$localize`Split operation will begin in the background. After its completion, the document will be deleted.`
)
modal.close()
this.close()
} else {
this.toastService.showInfo(
$localize`Split operation will begin in the background.`
)
modal.close()
}
this.toastService.showInfo(
$localize`Split operation will begin in the background.`
)
modal.close()
},
error: (error) => {
if (modal) {