mirror of
https://github.com/wassname/talk.git
synced 2026-09-11 12:51:33 +08:00
Added UI for downloading your comment data
- Added button on profile page - Added date when last downloaded data
This commit is contained in:
@@ -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')
|
||||
);
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user