This commit is contained in:
the-djmaze 2024-02-12 02:13:39 +01:00
parent 355f6158be
commit 8ab32816e2
6 changed files with 50 additions and 25 deletions

View file

@ -17,6 +17,7 @@ export class IdentityModel extends AbstractModel {
replyTo: '',
bcc: '',
sentFolder: '',
signature: '',
signatureInsertBefore: false,

View file

@ -3,7 +3,7 @@
max-width: 770px;
.tab-content {
grid-column-end: 4;
grid-column-end: 5;
padding-top: 20px;
}

View file

@ -457,7 +457,7 @@ export class ComposePopupView extends AbstractViewPopup {
}
sendCommand() {
let sSentFolder = FolderUserStore.sentFolder();
let sSentFolder = this.currentIdentity()?.sentFolder || FolderUserStore.sentFolder();
this.attachmentsInProcessError(false);
this.attachmentsInErrorError(false);

View file

@ -1,5 +1,5 @@
import { addObservablesTo } from 'External/ko';
import { addObservablesTo, koComputable } from 'External/ko';
import { getNotification } from 'Common/Translator';
import { loadAccountsAndIdentities } from 'Common/UtilsUser';
@ -10,6 +10,10 @@ import { AbstractViewPopup } from 'Knoin/AbstractViews';
import { IdentityModel } from 'Model/Identity';
import { folderListOptionsBuilder } from 'Common/Folders';
import { i18n } from 'Common/Translator';
import { defaultOptionsAfterRender } from 'Common/Utils';
export class IdentityPopupView extends AbstractViewPopup {
constructor() {
super('Identity');
@ -27,6 +31,13 @@ export class IdentityPopupView extends AbstractViewPopup {
this.replyTo.valueHasMutated();
this.bcc.valueHasMutated();
*/
this.folderSelectList = koComputable(() =>
folderListOptionsBuilder(
[],
[['', '('+i18n('GLOBAL/DEFAULT')+')']]
)
);
this.defaultOptionsAfterRender = defaultOptionsAfterRender;
}
submitForm(form) {