components/modal: Fixed ugly overlap and no styles for logging in/out modals
This commit is contained in:
@@ -5,17 +5,16 @@
|
|||||||
<menu-header>User</menu-header>
|
<menu-header>User</menu-header>
|
||||||
<menu-link if(!input.user.loggedIn) icon="L" href="/auth/login" on-click("loginClicked")>Login</menu-link>
|
<menu-link if(!input.user.loggedIn) icon="L" href="/auth/login" on-click("loginClicked")>Login</menu-link>
|
||||||
<menu-link if(input.user.loggedIn) icon="L" href="/auth/logout" on-click("logoutClicked")>Logout <span class="weak">(${input.user.name})</span></menu-link>
|
<menu-link if(input.user.loggedIn) icon="L" href="/auth/logout" on-click("logoutClicked")>Logout <span class="weak">(${input.user.name})</span></menu-link>
|
||||||
|
|
||||||
<modal enabled=state.loggingIn notification on-close("closeModal")>
|
|
||||||
<h1>Logging you in...</h1>
|
|
||||||
<p>You may be redirected to Auth0 if it's been a while.</p>
|
|
||||||
</modal>
|
|
||||||
<modal enabled=state.loggingOut notification on-close("closeModal")>
|
|
||||||
<h1>Logging you out...</h1>
|
|
||||||
<p>You can probably log back in without entering your info if you're quick.</p>
|
|
||||||
</modal>
|
|
||||||
</if>
|
</if>
|
||||||
<else-if(!input.allowNoUser)>
|
<else-if(!input.allowNoUser)>
|
||||||
<menu-blurb class="error">input.user is missing!</menu-blurb>
|
<menu-blurb class="error">input.user is missing!</menu-blurb>
|
||||||
</else-if>
|
</else-if>
|
||||||
</div>
|
</div>
|
||||||
|
<modal class="modal" enabled=state.loggingIn notification>
|
||||||
|
<h1>Logging you in...</h1>
|
||||||
|
<p>You may be redirected to Auth0 if it's been a while.</p>
|
||||||
|
</modal>
|
||||||
|
<modal class="modal" enabled=state.loggingOut notification>
|
||||||
|
<h1>Logging you out...</h1>
|
||||||
|
<p>You can probably log back in without entering your info if you're quick.</p>
|
||||||
|
</modal>
|
||||||
@@ -1,10 +1,12 @@
|
|||||||
<if(input.enabled)>
|
<div class="modal-wrapper">
|
||||||
<div class=["overlay", (input.notification ? "notification-overlay" : "normal-overlay")]>
|
<if(input.enabled)>
|
||||||
<div class="overlay-options color-menu">
|
<div class=["overlay", (input.notification ? "notification-overlay" : "normal-overlay")]>
|
||||||
<div if(input.closable) on-click("closeModal")>Close</div>
|
<div class="overlay-options color-menu">
|
||||||
|
<div if(input.closable) on-click("closeModal")>Close</div>
|
||||||
|
</div>
|
||||||
|
<div class=input.class>
|
||||||
|
<include(input.renderBody) />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class=input.class>
|
</if>
|
||||||
<include(input.renderBody) />
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</if>
|
|
||||||
Reference in New Issue
Block a user