Added UI for downloading your comment data

- Added button on profile page
- Added date when last downloaded data
This commit is contained in:
Wyatt Johnson
2018-04-02 17:53:27 -06:00
parent c904d0f0c0
commit bb7f1a57f0
13 changed files with 424 additions and 6 deletions
+2
View File
@@ -12,6 +12,7 @@ const {
LIST_OWN_TOKENS,
VIEW_USER_STATUS,
VIEW_USER_EMAIL,
VIEW_LAST_DOWNLOADED_DATE,
} = require('../../perms/constants');
const { property } = require('lodash');
@@ -64,6 +65,7 @@ decorateWithPermissionCheck(
tokens: [LIST_OWN_TOKENS],
profiles: [SEARCH_OTHER_USERS],
comments: [SEARCH_OTHERS_COMMENTS],
lastAccountDownload: [VIEW_LAST_DOWNLOADED_DATE],
},
checkSelfField('id')
);
+4
View File
@@ -238,6 +238,10 @@ type User {
# returns user status
state: UserState
# lastAccountDownload is the date that the user last requested a comment
# download.
lastAccountDownload: Date
}
# UserConnection represents a paginable subset of a user list.