Minor frontend tweaks
This commit is contained in:
@@ -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({
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user