mirror of
https://github.com/Terncode/pixel.horse.git
synced 2026-09-24 13:55:04 +02:00
Revert codestyle changes (#40)
* Revert "7f7efbb94bab8574e42d942ad82d414e007b2970" Code style changes should probably be part of a PR
This commit is contained in:
@@ -3,26 +3,26 @@ import { Auth } from '../../../../common/adminInterfaces';
|
||||
import { oauthIcons, faGlobe } from '../../../../client/icons';
|
||||
|
||||
@Component({
|
||||
selector: 'auth-info',
|
||||
templateUrl: 'auth-info.pug',
|
||||
styleUrls: ['auth-info.scss'],
|
||||
host: {
|
||||
'[class.deleted]': 'deleted',
|
||||
},
|
||||
selector: 'auth-info',
|
||||
templateUrl: 'auth-info.pug',
|
||||
styleUrls: ['auth-info.scss'],
|
||||
host: {
|
||||
'[class.deleted]': 'deleted',
|
||||
},
|
||||
})
|
||||
export class AuthInfo {
|
||||
@Input() auth?: Auth;
|
||||
@Input() showName = false;
|
||||
get deleted(): boolean {
|
||||
return !!(this.auth && (this.auth.disabled || this.auth.banned));
|
||||
}
|
||||
get name(): string {
|
||||
return this.auth && this.auth.name || '';
|
||||
}
|
||||
get icon() {
|
||||
return oauthIcons[this.auth && this.auth.provider || ''] || faGlobe;
|
||||
}
|
||||
get pledged() {
|
||||
return (this.auth && this.auth.pledged || 0) / 100;
|
||||
}
|
||||
@Input() auth?: Auth;
|
||||
@Input() showName = false;
|
||||
get deleted(): boolean {
|
||||
return !!(this.auth && (this.auth.disabled || this.auth.banned));
|
||||
}
|
||||
get name(): string {
|
||||
return this.auth && this.auth.name || '';
|
||||
}
|
||||
get icon() {
|
||||
return oauthIcons[this.auth && this.auth.provider || ''] || faGlobe;
|
||||
}
|
||||
get pledged() {
|
||||
return (this.auth && this.auth.pledged || 0) / 100;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user