mirror of
https://github.com/TryGhost/Ghost-Admin.git
synced 2023-12-14 02:33:04 +01:00
b63f5f59d0
refs. [f8b03f5
](f8b03f50b6
) - 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)
23 lines
502 B
JavaScript
23 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;
|
|
};
|
|
}
|
|
});
|