Rename 'dirty' to 'should_refetch'
This commit is contained in:
parent
2f6cd35f38
commit
fa91defea0
2 changed files with 2 additions and 3 deletions
|
@ -132,7 +132,7 @@ export function fetchAccount(id) {
|
|||
|
||||
const account = getState().getIn(['accounts', id]);
|
||||
|
||||
if (account && !account.get('dirty')) {
|
||||
if (account && !account.get('should_refetch')) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -145,7 +145,7 @@ const buildAccount = adminUser => fromJS({
|
|||
actor_type: adminUser.get('actor_type'),
|
||||
},
|
||||
},
|
||||
dirty: true,
|
||||
should_refetch: true,
|
||||
});
|
||||
|
||||
const mergeAdminUser = (account, adminUser) => {
|
||||
|
@ -157,7 +157,6 @@ const mergeAdminUser = (account, adminUser) => {
|
|||
account.setIn(['pleroma', 'is_admin'], adminUser.getIn(['roles', 'admin']));
|
||||
account.setIn(['pleroma', 'is_moderator'], adminUser.getIn(['roles', 'moderator']));
|
||||
account.setIn(['pleroma', 'is_confirmed'], adminUser.get('is_confirmed'));
|
||||
account.set('dirty', true);
|
||||
});
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue