diff --git a/app/views/play/WorldMapView.coffee b/app/views/play/WorldMapView.coffee index 6ddb432db..b86bb8222 100644 --- a/app/views/play/WorldMapView.coffee +++ b/app/views/play/WorldMapView.coffee @@ -119,7 +119,8 @@ module.exports = class WorldMapView extends RootView @render() @preloadTopHeroes() unless me.get('heroConfig')?.thangType if @requiresSubscription - _.delay (=> @openModalView? new SubscribeModal() unless window.currentModal), 2000 + modal = if me.get('anonymous') then AuthModal else SubscribeModal + _.delay (=> @openModalView? new modal() unless window.currentModal), 2000 onSubscribed: -> @requiresSubscription = false @@ -205,7 +206,8 @@ module.exports = class WorldMapView extends RootView @endHighlight() else if @requiresSubscription - @openModalView new SubscribeModal() + modal = if me.get('anonymous') then AuthModal else SubscribeModal + @openModalView new modal() else if $(e.target).attr('disabled') Backbone.Mediator.publish 'router:navigate', route: '/contribute/adventurer' return diff --git a/app/views/play/level/LevelLoadingView.coffee b/app/views/play/level/LevelLoadingView.coffee index 60345e383..75db2ac45 100644 --- a/app/views/play/level/LevelLoadingView.coffee +++ b/app/views/play/level/LevelLoadingView.coffee @@ -2,6 +2,7 @@ CocoView = require 'views/core/CocoView' template = require 'templates/play/level/level_loading' utils = require 'core/utils' SubscribeModal = require 'views/play/modal/SubscribeModal' +AuthModal = require 'views/core/AuthModal' module.exports = class LevelLoadingView extends CocoView id: 'level-loading-view' @@ -109,7 +110,8 @@ module.exports = class LevelLoadingView extends CocoView @$el.find('.subscription-required').show() onClickStartSubscription: (e) -> - @openModalView new SubscribeModal() + modal = if me.get('anonymous') then AuthModal else SubscribeModal + @openModalView new modal() onSubscribed: -> document.location.reload()