[ACA-2182] ADF 3.3.0 alpha (#1126)

* upgrade to latest adf 3.0.0 alpha

* use ADF share dialog

* [ACA-2069] make sure toggles have the right color

* raise error popups for shared links

* update test

* use date only for sharing

* [ACA-2069] small improvement - make sure toggles have the right color

* remove old share dialog

* move toggle-shared component to common module
This commit is contained in:
Denys Vuika
2019-06-14 12:59:09 +01:00
committed by GitHub
parent ca5795fac0
commit 36043d1473
20 changed files with 78 additions and 928 deletions
+10 -2
View File
@@ -29,7 +29,8 @@ import {
AuthenticationService,
FileUploadErrorEvent,
PageTitleService,
UploadService
UploadService,
SharedLinksApiService
} from '@alfresco/adf-core';
import { Component, OnInit, OnDestroy } from '@angular/core';
import { ActivatedRoute, NavigationEnd, Router } from '@angular/router';
@@ -70,7 +71,8 @@ export class AppComponent implements OnInit, OnDestroy {
private uploadService: UploadService,
private extensions: AppExtensionService,
private contentApi: ContentApiService,
private appService: AppService
private appService: AppService,
private sharedLinksApiService: SharedLinksApiService
) {}
ngOnInit() {
@@ -120,6 +122,12 @@ export class AppComponent implements OnInit, OnDestroy {
this.onFileUploadedError(error)
);
this.sharedLinksApiService.error
.pipe(takeUntil(this.onDestroy$))
.subscribe((err: { message: string }) => {
this.store.dispatch(new SnackbarErrorAction(err.message));
});
this.appService.ready$
.pipe(takeUntil(this.onDestroy$))
.subscribe(isReady => {