From 79c9efbc33df9d48789c211613723a5c4ca5b15e Mon Sep 17 00:00:00 2001 From: aunxx Date: Wed, 1 Jun 2016 16:00:49 +0100 Subject: [PATCH] Hard code some of the account details. No databaase backend at this point --- .../delta/js/Clipperz/PM/UI/MainController.js | 31 ++++++++++++++++--- 1 file changed, 27 insertions(+), 4 deletions(-) diff --git a/frontend/delta/js/Clipperz/PM/UI/MainController.js b/frontend/delta/js/Clipperz/PM/UI/MainController.js index dce27cb..3c606d0 100644 --- a/frontend/delta/js/Clipperz/PM/UI/MainController.js +++ b/frontend/delta/js/Clipperz/PM/UI/MainController.js @@ -1265,10 +1265,33 @@ Clipperz.log("THE BROWSER IS OFFLINE"); 'certificateQuota' ]; - var attributes = this.user().accountInfo()._attributes; - MochiKit.Iter.forEach(usefulFields, function (aFieldName) { - result[aFieldName] = attributes[aFieldName]; - }) +// +// Disable loading of the details of the account. Hard code similar to the python frontend +// +// var attributes = this.user().accountInfo()._attributes; +// MochiKit.Iter.forEach(usefulFields, function (aFieldName) { +// result[aFieldName] = attributes[aFieldName]; +// }) + + result['currentSubscriptionType'] = 'EARLY_ADOPTER' ; + result['expirationDate'] = 'Mon, 01 January 4001 00:00:00 UTC' ; + result['referenceDate'] = 'Fri, 03 April 2015 08:17:46 UTC' ; + result['featureSet'] = 'FULL' ; + result['features'] = ['UPDATE_CREDENTIALS', + 'EDIT_CARD', + 'CARD_DETAILS', + 'REGISTER_CARD', + 'ADD_CARD', + 'DELETE_CARD', + 'OFFLINE_COPY', + 'LIST_CARDS']; + result['isExpired'] = false ; + result['isExpiring'] = false ; + result['paymentVerificationPending'] = false ; + result['attachmentQuota'] = 100 ; + result['certificateQuota'] = 100 ; + + }; return result;