From fd1f8b24c141fb3987b085762b5863b49b57f772 Mon Sep 17 00:00:00 2001 From: Chi Vinh Le Date: Mon, 3 Jul 2017 19:33:33 +0700 Subject: [PATCH] Don't show popup when empty --- client/coral-framework/actions/auth.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/coral-framework/actions/auth.js b/client/coral-framework/actions/auth.js index 05e078010..53d0f1212 100644 --- a/client/coral-framework/actions/auth.js +++ b/client/coral-framework/actions/auth.js @@ -7,8 +7,12 @@ import pym from '../services/PymConnection'; import {resetWebsocket} from 'coral-framework/services/client'; import t from 'coral-framework/services/i18n'; +import {isSlotEmpty} from 'plugin-api/beta/client/services'; export const showSignInDialog = () => (dispatch, getState) => { + if (isSlotEmpty('login')) { + return; + } const signInPopUp = window.open( '/embed/stream/login', 'Login',