|
@@ -16,11 +16,14 @@ import { getLoginMessageByGoogleIdToken } from '../assets/js/__message-util';
|
|
@Component
|
|
@Component
|
|
export default class GoogleLogin extends Vue {
|
|
export default class GoogleLogin extends Vue {
|
|
@Prop() public connection;
|
|
@Prop() public connection;
|
|
|
|
+ @Prop() public session;
|
|
idToken: string = ''
|
|
idToken: string = ''
|
|
|
|
|
|
loginDisabled(){
|
|
loginDisabled(){
|
|
- if ( this.idToken == null ) return true;
|
|
|
|
- return this.idToken == null || this.connection.socketId == null
|
|
|
|
|
|
+ if ( this.idToken == null ) return true
|
|
|
|
+ if ( this.connection.socketId == null ) return true
|
|
|
|
+ if ( this.session.ucpId != null ) return true
|
|
|
|
+ return false
|
|
}
|
|
}
|
|
|
|
|
|
mounted(){
|
|
mounted(){
|