mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 12:09:20 +03:00
Added: "You have too many folders!" description (#414)
This commit is contained in:
parent
71a141dbb4
commit
ec51bb0b9f
29 changed files with 66 additions and 12 deletions
|
|
@ -21,7 +21,6 @@
|
|||
*/
|
||||
function FoldersUserSettings()
|
||||
{
|
||||
this.foldersListError = Data.foldersListError;
|
||||
this.folderList = Data.folderList;
|
||||
|
||||
this.processText = ko.computed(function () {
|
||||
|
|
@ -105,7 +104,7 @@
|
|||
Data.foldersRenaming(false);
|
||||
if (Enums.StorageResultType.Success !== sResult || !oData || !oData.Result)
|
||||
{
|
||||
Data.foldersListError(
|
||||
Data.folderList.error(
|
||||
oData && oData.ErrorCode ? Utils.getNotification(oData.ErrorCode) : Utils.i18n('NOTIFICATIONS/CANT_RENAME_FOLDER'));
|
||||
}
|
||||
|
||||
|
|
@ -131,7 +130,7 @@
|
|||
|
||||
FoldersUserSettings.prototype.onShow = function ()
|
||||
{
|
||||
Data.foldersListError('');
|
||||
Data.folderList.error('');
|
||||
};
|
||||
|
||||
FoldersUserSettings.prototype.createFolder = function ()
|
||||
|
|
@ -176,7 +175,7 @@
|
|||
Data.foldersDeleting(false);
|
||||
if (Enums.StorageResultType.Success !== sResult || !oData || !oData.Result)
|
||||
{
|
||||
Data.foldersListError(
|
||||
Data.folderList.error(
|
||||
oData && oData.ErrorCode ? Utils.getNotification(oData.ErrorCode) : Utils.i18n('NOTIFICATIONS/CANT_DELETE_FOLDER'));
|
||||
}
|
||||
|
||||
|
|
@ -189,7 +188,7 @@
|
|||
}
|
||||
else if (0 < oFolderToRemove.privateMessageCountAll())
|
||||
{
|
||||
Data.foldersListError(Utils.getNotification(Enums.Notification.CantDeleteNonEmptyFolder));
|
||||
Data.folderList.error(Utils.getNotification(Enums.Notification.CantDeleteNonEmptyFolder));
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -134,8 +134,8 @@
|
|||
this.namespace = '';
|
||||
this.folderList = ko.observableArray([]);
|
||||
this.folderList.focused = ko.observable(false);
|
||||
|
||||
this.foldersListError = ko.observable('');
|
||||
this.folderList.optimized = ko.observable(false);
|
||||
this.folderList.error = ko.observable('');
|
||||
|
||||
this.foldersLoading = ko.observable(false);
|
||||
this.foldersCreating = ko.observable(false);
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@
|
|||
}
|
||||
else
|
||||
{
|
||||
Data.foldersListError(
|
||||
Data.folderList.error(
|
||||
oData && oData.ErrorCode ? Utils.getNotification(oData.ErrorCode) : Utils.i18n('NOTIFICATIONS/CANT_CREATE_FOLDER'));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue