mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 13:54:35 +03:00
605b89a0d2
refs. [d6c22df
](d6c22df6d7
) - added icons for members and pages - improved view site link visibility - added view site to logo dropdown - updated all navigation and logo menu icons - rename 'team' to 'staff' - lots of design refinement and update (colors, shadows)
24 lines
502 B
JavaScript
24 lines
502 B
JavaScript
import Mixin from '@ember/object/mixin';
|
|
|
|
export default Mixin.create({
|
|
transitionAuthor() {
|
|
return (user) => {
|
|
if (user.get('isAuthorOrContributor')) {
|
|
return this.transitionTo('staff.user', user);
|
|
}
|
|
|
|
return user;
|
|
};
|
|
},
|
|
|
|
transitionEditor() {
|
|
return (user) => {
|
|
if (user.get('isEditor')) {
|
|
return this.transitionTo('staff');
|
|
}
|
|
|
|
return user;
|
|
};
|
|
}
|
|
});
|