diff --git a/www/common/common-ui-elements.js b/www/common/common-ui-elements.js index 7a5eb0c1c..af2b86f86 100644 --- a/www/common/common-ui-elements.js +++ b/www/common/common-ui-elements.js @@ -553,13 +553,15 @@ define([ if (!data.noEditPassword && owned && parsed.type !== "sheet") { // FIXME SHEET fix password change for sheets var sframeChan = common.getSframeChannel(); - var changePwTitle = Messages.properties_changePassword; - var changePwConfirm = Messages.properties_confirmChange; - var isSharedFolder = parsed.type === 'drive'; + var isFile = parsed.hashData.type === 'file'; + var isSharedFolder = parsed.type === 'drive'; + + var changePwTitle = Messages.properties_changePassword; + var changePwConfirm = isFile ? Messages.properties_confirmChangeFile : Messages.properties_confirmChange; if (!hasPassword) { changePwTitle = Messages.properties_addPassword; - changePwConfirm = Messages.properties_confirmNew; + changePwConfirm = isFile ? Messages.properties_confirmNewFile : Messages.properties_confirmNew; } $('