Display an alert in the drive when the limit is reached

This commit is contained in:
yflory
2017-05-22 17:55:10 +02:00
parent 40b99e7bbf
commit d55b7e411c
4 changed files with 24 additions and 11 deletions

View File

@@ -617,7 +617,7 @@ define([
if (e) { return void console.error("Unable to get the pinned usage"); }
if (overLimit) {
$limit.show().click(function () {
Cryptpad.alert(Messages.pinLimitReachedAlert, null, true);
Cryptpad.alert(Messages._getKey('pinLimitReachedAlert', [encodeURIComponent(window.location.hostname)]), null, true);
});
}
};