mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[MOBILEAPPS-1707] Open in App Dialog design changes as per new design and visibility of dialog enabled after the login and is shown in case of private files as well (#3225)
* implementation of download Ios app as per new design shared in case IOS * design changes as per new design shared my mobile application team * implementation of dialog after login and visibility enabled for private files * single click on cross dialog to close popup which was occuring earlier on double click * test cases added for open in app component, shared link view component and name changes * ipad changes to open in Safari browser, open in app button clickable width increased and focus unset on open in app button click * open in app button style changes * theme button color changes * review comments addressed * review comments addressed * review comments addressed * download app text changes * improved open-in-app.scss file and removed mat and cdk classed
This commit is contained in:
@@ -30,7 +30,7 @@ import { ActivatedRoute } from '@angular/router';
|
||||
import { of } from 'rxjs';
|
||||
import { NO_ERRORS_SCHEMA } from '@angular/core';
|
||||
import { SetSelectedNodesAction } from '@alfresco/aca-shared/store';
|
||||
import { AppExtensionService } from '@alfresco/aca-shared';
|
||||
import { AppExtensionService, AppService } from '@alfresco/aca-shared';
|
||||
|
||||
describe('SharedLinkViewComponent', () => {
|
||||
let component: SharedLinkViewComponent;
|
||||
@@ -41,6 +41,9 @@ describe('SharedLinkViewComponent', () => {
|
||||
dispatch: jasmine.createSpy('dispatch'),
|
||||
select: () => of({})
|
||||
};
|
||||
const appServiceMock = {
|
||||
openMobileAppDialog: () => {}
|
||||
};
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
@@ -55,6 +58,10 @@ describe('SharedLinkViewComponent', () => {
|
||||
snapshot: { data: { preferencePrefix: 'prefix' } },
|
||||
params: of({ id: '123' })
|
||||
}
|
||||
},
|
||||
{
|
||||
provide: AppService,
|
||||
useValue: appServiceMock
|
||||
}
|
||||
],
|
||||
schemas: [NO_ERRORS_SCHEMA]
|
||||
|
@@ -31,7 +31,7 @@ import { ActivatedRoute } from '@angular/router';
|
||||
import { Store } from '@ngrx/store';
|
||||
import { forkJoin, from, of, Subject } from 'rxjs';
|
||||
import { catchError, mergeMap, takeUntil } from 'rxjs/operators';
|
||||
import { AppExtensionService } from '@alfresco/aca-shared';
|
||||
import { AppExtensionService, AppService } from '@alfresco/aca-shared';
|
||||
|
||||
@Component({
|
||||
selector: 'app-shared-link-view',
|
||||
@@ -50,7 +50,8 @@ export class SharedLinkViewComponent implements OnInit, OnDestroy {
|
||||
private route: ActivatedRoute,
|
||||
private store: Store<AppStore>,
|
||||
private extensions: AppExtensionService,
|
||||
private alfrescoApiService: AlfrescoApiService
|
||||
private alfrescoApiService: AlfrescoApiService,
|
||||
private appService: AppService
|
||||
) {
|
||||
this.sharedLinksApi = new SharedlinksApi(this.alfrescoApiService.getInstance());
|
||||
}
|
||||
@@ -65,6 +66,7 @@ export class SharedLinkViewComponent implements OnInit, OnDestroy {
|
||||
.subscribe(([sharedEntry, sharedId]: [SharedLinkEntry, string]) => {
|
||||
if (sharedEntry) {
|
||||
this.store.dispatch(new SetSelectedNodesAction([sharedEntry as any]));
|
||||
this.appService.openMobileAppDialog();
|
||||
}
|
||||
this.sharedLinkId = sharedId;
|
||||
});
|
||||
|
Reference in New Issue
Block a user