96252: Extract upload-specific code from SharedModule

This commit is contained in:
Yury Bondarenko
2022-11-23 19:38:52 +01:00
parent 3739fa4121
commit db3e8f9246
29 changed files with 104 additions and 54 deletions

View File

@@ -0,0 +1,28 @@
/**
* The contents of this file are subject to the license and copyright
* detailed in the LICENSE and NOTICE files at the root of the source
* tree and available online at
*
* http://www.dspace.org/license/
*/
import { Injectable } from '@angular/core';
@Injectable({
providedIn: 'root'
})
export class DragService {
private _overrideDragOverPage = false;
public overrideDragOverPage() {
this._overrideDragOverPage = true;
}
public allowDragOverPage() {
this._overrideDragOverPage = false;
}
public isAllowedDragOverPage(): boolean {
return !this._overrideDragOverPage;
}
}