Skip to content

Conversation

@rheidari
Copy link

@rheidari rheidari commented May 8, 2020

Changes

protect(password, options) {
// TODO: make this function truly async
// perhaps marshal to worker thread or something
return new Promise(resolve => {
Copy link
Member

Choose a reason for hiding this comment

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

Whether this attribute should be declared in constructor ().

    // worksheet protection
    this.sheetProtection = null;

Copy link
Author

Choose a reason for hiding this comment

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

This has been added to the constructor

Choose a reason for hiding this comment

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

Does this really work ? I set sheet protection to true it doesn't lock a particular cell

@alubbe
Copy link
Member

alubbe commented May 20, 2020

Please merge the current master into your branch

@alubbe
Copy link
Member

alubbe commented Jun 2, 2020

The implementation looks good, but I think we need a better test here. Ideally, write a file with a protection and then show that when reading the file again, the flag is set

Copy link
Member

@alubbe alubbe left a comment

Choose a reason for hiding this comment

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

👆

Copy link
Member

@Siemienik Siemienik left a comment

Choose a reason for hiding this comment

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

@rheidari, have you possibility to made requested changes?

@rheidari
Copy link
Author

@rheidari, have you possibility to made requested changes?

Apologies for the delay, I've updated the test!

@alubbe alubbe merged commit c61dde9 into exceljs:master Sep 28, 2020
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.

5 participants