|
@@ -16,11 +16,14 @@ import { getLoginMessageByGoogleIdToken } from '../assets/js/__message-util';
|
|
|
@Component
|
|
|
export default class GoogleLogin extends Vue {
|
|
|
@Prop() public connection;
|
|
|
+ @Prop() public session;
|
|
|
idToken: string = ''
|
|
|
|
|
|
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(){
|