SUPPORT-9497: refactor
This commit is contained in:
parent
30ae19cb94
commit
f2788e1d5e
1 changed files with 0 additions and 2 deletions
|
|
@ -4,12 +4,10 @@ import {CookieService} from "ngx-cookie";
|
||||||
export class FileUploadChecker extends Behavior {
|
export class FileUploadChecker extends Behavior {
|
||||||
private cookieService: CookieService;
|
private cookieService: CookieService;
|
||||||
|
|
||||||
|
|
||||||
initialize() {
|
initialize() {
|
||||||
this.cookieService = this.injector.get(CookieService);
|
this.cookieService = this.injector.get(CookieService);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Visible()
|
@Visible()
|
||||||
public fileUploadAllowed(): boolean {
|
public fileUploadAllowed(): boolean {
|
||||||
return this.cookieService.get("upload_allowed") != null;
|
return this.cookieService.get("upload_allowed") != null;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue