Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide progress message after export completes #10122

Merged
merged 1 commit into from
May 25, 2022
Merged

Hide progress message after export completes #10122

merged 1 commit into from
May 25, 2022

Conversation

DonJayamanne
Copy link
Contributor

Fixes #9112

@DonJayamanne DonJayamanne requested a review from a team as a code owner May 24, 2022 23:17
@@ -39,24 +39,7 @@ export class FileConverter extends FileConverterBase implements IFileConverter {
);
}

override async performExport(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this not used?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We were overriding it just to change one argument in a method call of the base class.
Rather than copying and pasting the code from the base class, I've added a new method that can be overridden to change the behaviour of what happens when opening the file.

@@ -107,10 +108,17 @@ export class FileConverter implements IFileConverter {
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rchiodo this method was identical in the child class, except for the line 110, we were adding a new argument.
Tomorrow if we have more formats then we need to copy code from the parent class into this child class, which isn't good

@@ -107,10 +108,17 @@ export class FileConverter implements IFileConverter {
}

if (target) {
await this.exportFileOpener.openFile(format, target, true);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved this code into a different method so that the child classes can do what they like (change behaviour on how files are opened after its exported)

@DonJayamanne DonJayamanne merged commit b1841e3 into main May 25, 2022
@DonJayamanne DonJayamanne deleted the issue9112 branch May 25, 2022 00:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Exporting to HTML notification persists
2 participants