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:
@@ -27,6 +27,7 @@ import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
||||
|
||||
export interface OpenInAppDialogOptions {
|
||||
redirectUrl: string;
|
||||
appStoreUrl: string;
|
||||
}
|
||||
@Component({
|
||||
selector: 'aca-open-in-app',
|
||||
@@ -35,7 +36,8 @@ export interface OpenInAppDialogOptions {
|
||||
encapsulation: ViewEncapsulation.None
|
||||
})
|
||||
export class OpenInAppComponent {
|
||||
private readonly redirectUrl: string;
|
||||
private redirectUrl: string;
|
||||
public appStoreUrl: string;
|
||||
public window: Window & typeof globalThis = window;
|
||||
|
||||
constructor(
|
||||
@@ -45,6 +47,7 @@ export class OpenInAppComponent {
|
||||
) {
|
||||
if (data) {
|
||||
this.redirectUrl = data.redirectUrl;
|
||||
this.appStoreUrl = data.appStoreUrl;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -52,6 +55,10 @@ export class OpenInAppComponent {
|
||||
this.window.location.href = this.redirectUrl;
|
||||
}
|
||||
|
||||
downloadIosApp(): void {
|
||||
this.window.location.href = this.appStoreUrl;
|
||||
}
|
||||
|
||||
onCloseDialog(): void {
|
||||
const time: number = new Date().getTime();
|
||||
sessionStorage.setItem('mobile_notification_expires_in', time.toString());
|
||||
|
Reference in New Issue
Block a user