mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2026-09-09 18:02:54 +00:00
[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:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user