mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-03 22:47:03 +03:00
Added a S/MIME certificates list to User settings #259
This commit is contained in:
parent
a22ae5fcf4
commit
3f08051e37
8 changed files with 172 additions and 219 deletions
17
dev/Stores/User/SMime.js
Normal file
17
dev/Stores/User/SMime.js
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import { addObservablesTo, koArrayWithDestroy } from 'External/ko';
|
||||
import Remote from 'Remote/User/Fetch';
|
||||
|
||||
export const SMimeUserStore = koArrayWithDestroy();
|
||||
|
||||
addObservablesTo(SMimeUserStore, {
|
||||
loading: false
|
||||
});
|
||||
|
||||
SMimeUserStore.loadCertificates = () => {
|
||||
SMimeUserStore([]);
|
||||
SMimeUserStore.loading(true);
|
||||
Remote.request('SMimeGetCertificates', (iError, oData) => {
|
||||
SMimeUserStore.loading(false);
|
||||
iError || SMimeUserStore(oData.Result);
|
||||
});
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue