mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-05 07:27:04 +03:00
merge all Model JSON @Object parsers into a reviveFromJson()
This commit is contained in:
parent
76648f04ae
commit
15e07a73e9
18 changed files with 378 additions and 411 deletions
|
|
@ -8,6 +8,7 @@ import Remote from 'Remote/User/Fetch';
|
|||
|
||||
import { popup, command } from 'Knoin/Knoin';
|
||||
import { AbstractViewNext } from 'Knoin/AbstractViewNext';
|
||||
import { TemplateModel } from 'Model/Template';
|
||||
|
||||
@popup({
|
||||
name: 'View/Popup/Template',
|
||||
|
|
@ -133,8 +134,7 @@ class TemplatePopupView extends AbstractViewNext {
|
|||
if (
|
||||
StorageResultType.Success === result &&
|
||||
data &&
|
||||
data.Result &&
|
||||
'Object/Template' === data.Result['@Object'] &&
|
||||
TemplateModel.validJson(data.Result) &&
|
||||
null != data.Result.Body
|
||||
) {
|
||||
template.body = data.Result.Body;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue