[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:
Jatin Chugh
2023-05-26 22:25:18 +05:30
committed by GitHub
parent 638d2f776c
commit 44ea08891e
13 changed files with 201 additions and 53 deletions

View File

@@ -103,6 +103,8 @@ export class AppService implements OnDestroy {
this.authenticationService.onLogout.subscribe(() => {
searchQueryBuilderService.resetToDefaults();
acaMobileAppSwitcherService.clearSessionExpireTime();
acaMobileAppSwitcherService.closeDialog();
});
this.pageHeading$ = this.router.events.pipe(
@@ -164,17 +166,11 @@ export class AppService implements OnDestroy {
if (isReady) {
this.loadRepositoryStatus();
this.loadUserProfile();
this.openMobileAppDialog();
}
});
this.overlayContainer.getContainerElement().setAttribute('role', 'region');
const isMobileSwitchEnabled: boolean = this.config.get<boolean>('mobileAppSwitch.enabled', false);
if (isMobileSwitchEnabled) {
this.acaMobileAppSwitcherService.resolveExistenceOfDialog();
} else {
this.acaMobileAppSwitcherService.clearSessionExpireTime();
}
}
private loadRepositoryStatus() {
@@ -266,4 +262,13 @@ export class AppService implements OnDestroy {
cssLinkElement.setAttribute('href', url);
document.head.appendChild(cssLinkElement);
}
public openMobileAppDialog(): void {
const isMobileSwitchEnabled: boolean = this.config.get<boolean>('mobileAppSwitch.enabled', false);
if (isMobileSwitchEnabled) {
this.acaMobileAppSwitcherService.resolveExistenceOfDialog();
} else {
this.acaMobileAppSwitcherService.clearSessionExpireTime();
}
}
}