Skip to content

Commit 3ef19b4

Browse files
author
Lukasz Borowiec
committed
#514: User sees content snapshot on Category Page in Admin Panel - fixed for typescript static tests
1 parent b592c3f commit 3ef19b4

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

app/code/Magento/PageBuilder/view/adminhtml/web/ts/js/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*/
55

66
import _ from "underscore";
7-
import ConfigInterface, {Mode, ContentSnapshotInterface} from "./config.types";
7+
import ConfigInterface, {ContentSnapshotInterface, Mode} from "./config.types";
88
import ContentTypeConfigInterface from "./content-type-config.types";
99

1010
export default class Config {
@@ -50,7 +50,7 @@ export default class Config {
5050
*/
5151
public static getContentSnapshot(): ContentSnapshotInterface
5252
{
53-
return Config.contentSnapshot
53+
return Config.contentSnapshot;
5454
}
5555

5656
/**

app/code/Magento/PageBuilder/view/adminhtml/web/ts/js/config.types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ export type ContentSnapshot = true | false;
2323

2424
export interface ContentSnapshotInterface
2525
{
26-
pageBuilderId: string,
27-
contentSnapshotMode: ContentSnapshot,
26+
pageBuilderId: string;
27+
contentSnapshotMode: ContentSnapshot;
2828
}
2929

3030
export interface MenuSectionInterface {

app/code/Magento/PageBuilder/view/adminhtml/web/ts/js/content-type/preview.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,9 @@ export default class Preview implements PreviewInterface {
515515
},
516516
);
517517
}
518-
events.on(`stage:${Config.getContentSnapshot().pageBuilderId}:fullScreenModeChangeAfter`, this.toggleAccessibility.bind(this));
518+
events.on(`stage:${Config.getContentSnapshot().pageBuilderId}:fullScreenModeChangeAfter`,
519+
this.toggleAccessibility.bind(this)
520+
);
519521
}
520522

521523
/**

app/code/Magento/PageBuilder/view/adminhtml/web/ts/js/panel.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ export default class Panel {
5454
this.element = element;
5555
}
5656

57-
5857
/**
5958
* Init listeners
6059
*/

0 commit comments

Comments
 (0)