mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Fixed missing identity section (Closes #456)
This commit is contained in:
parent
5c00815d31
commit
7807138b7b
6 changed files with 95 additions and 91 deletions
|
|
@ -53,11 +53,9 @@
|
||||||
'SettingsContacts', 'SETTINGS_LABELS/LABEL_CONTACTS_NAME', 'contacts');
|
'SettingsContacts', 'SETTINGS_LABELS/LABEL_CONTACTS_NAME', 'contacts');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Settings.capa(Enums.Capa.AdditionalAccounts))
|
kn.addSettingsViewModel(require('Settings/User/Accounts'), 'SettingsAccounts',
|
||||||
{
|
Settings.capa(Enums.Capa.AdditionalAccounts) ?
|
||||||
kn.addSettingsViewModel(require('Settings/User/Accounts'),
|
'SETTINGS_LABELS/LABEL_ACCOUNTS_NAME' : 'SETTINGS_LABELS/LABEL_IDENTITIES_NAME', 'accounts');
|
||||||
'SettingsAccounts', 'SETTINGS_LABELS/LABEL_ACCOUNTS_NAME', 'accounts');
|
|
||||||
}
|
|
||||||
|
|
||||||
if (Settings.capa(Enums.Capa.Sieve))
|
if (Settings.capa(Enums.Capa.Sieve))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,7 @@
|
||||||
AccountStore = require('Stores/User/Account'),
|
AccountStore = require('Stores/User/Account'),
|
||||||
IdentityStore = require('Stores/User/Identity'),
|
IdentityStore = require('Stores/User/Identity'),
|
||||||
|
|
||||||
|
Settings = require('Storage/Settings'),
|
||||||
Remote = require('Storage/User/Remote')
|
Remote = require('Storage/User/Remote')
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
@ -22,6 +23,9 @@
|
||||||
*/
|
*/
|
||||||
function AccountsUserSettings()
|
function AccountsUserSettings()
|
||||||
{
|
{
|
||||||
|
this.allowAdditionalAccount = Settings.capa(Enums.Capa.AdditionalAccounts);
|
||||||
|
this.allowIdentities = true;
|
||||||
|
|
||||||
this.accounts = AccountStore.accounts;
|
this.accounts = AccountStore.accounts;
|
||||||
this.identities = IdentityStore.identities;
|
this.identities = IdentityStore.identities;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,6 @@
|
||||||
var
|
var
|
||||||
_ = require('_'),
|
_ = require('_'),
|
||||||
|
|
||||||
Enums = require('Common/Enums'),
|
|
||||||
Globals = require('Common/Globals'),
|
Globals = require('Common/Globals'),
|
||||||
|
|
||||||
kn = require('Knoin/Knoin'),
|
kn = require('Knoin/Knoin'),
|
||||||
|
|
|
||||||
|
|
@ -242,8 +242,7 @@
|
||||||
aC = this.contactsCheckedOrSelected(),
|
aC = this.contactsCheckedOrSelected(),
|
||||||
aToEmails = null,
|
aToEmails = null,
|
||||||
aCcEmails = null,
|
aCcEmails = null,
|
||||||
aBccEmails = null,
|
aBccEmails = null
|
||||||
aReplyToEmails = null
|
|
||||||
;
|
;
|
||||||
|
|
||||||
if (Utils.isNonEmptyArray(aC))
|
if (Utils.isNonEmptyArray(aC))
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "RainLoop",
|
"name": "RainLoop",
|
||||||
"title": "RainLoop Webmail",
|
"title": "RainLoop Webmail",
|
||||||
"version": "1.8.1",
|
"version": "1.8.1",
|
||||||
"release": "259",
|
"release": "260",
|
||||||
"description": "Simple, modern & fast web-based email client",
|
"description": "Simple, modern & fast web-based email client",
|
||||||
"homepage": "http://rainloop.net",
|
"homepage": "http://rainloop.net",
|
||||||
"main": "gulpfile.js",
|
"main": "gulpfile.js",
|
||||||
|
|
@ -36,7 +36,7 @@
|
||||||
"plugins"
|
"plugins"
|
||||||
],
|
],
|
||||||
"readmeFilename": "README.md",
|
"readmeFilename": "README.md",
|
||||||
"ownCloudPackageVersion": "3.0",
|
"ownCloudPackageVersion": "3.1",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 0.10.0"
|
"node": ">= 0.10.0"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
<div class="b-settings-accounts g-ui-user-select-none">
|
<div class="b-settings-accounts g-ui-user-select-none">
|
||||||
|
<div data-bind="visible: allowAdditionalAccount">
|
||||||
<div class="form-horizontal">
|
<div class="form-horizontal">
|
||||||
<div class="legend">
|
<div class="legend">
|
||||||
<span class="i18n" data-i18n-text="SETTINGS_ACCOUNTS/LEGEND_ACCOUNTS"></span>
|
<span class="i18n" data-i18n-text="SETTINGS_ACCOUNTS/LEGEND_ACCOUNTS"></span>
|
||||||
|
|
@ -42,6 +43,8 @@
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
</div>
|
||||||
|
<div data-bind="visible: allowIdentities">
|
||||||
<br />
|
<br />
|
||||||
<div class="form-horizontal">
|
<div class="form-horizontal">
|
||||||
<div class="legend">
|
<div class="legend">
|
||||||
|
|
@ -85,3 +88,4 @@
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue