2017-08-01 18:52:49 +00:00
< template lang = "pug" >
2017-08-30 22:59:31 +00:00
b - modal # new - stuff (
v - if = 'user.flags.newStuff' ,
size = 'lg' ,
: hide - header = 'true' ,
: hide - footer = 'true' ,
)
. modal - body
. media
. media - body
. media
. align - self - center . right - margin ( : class = 'baileyClass' )
. media - body
h1 . align - self - center ( v - markdown = '$t("newStuff")' )
h2 8 / 30 / 2017 - LAST CHANCE FOR LAVA WARRIOR SET AND EMBER HATCHING POTIONS
hr
. media
. promo _mystery _201708 . right - margin . align - self - center
. media - body
h3 Last Chance for Lava Warrior Set
p Reminder : you only have three days to < a href = '/settings/subscription' > subscribe < / a > and receive the Lava Warrior Set ! Subscribing also lets you buy gems for gold . The longer your subscription , the more gems you get !
p Thanks so much for your support ! You help keep Habitica running .
p . small . muted by Lemoness
h3 Last Chance for Ember Hatching Potions
p Reminder : there are three days left to < a href = '/shops/market' > buy Ember Hatching Potions < / a > ! If they come back , it won 't be until next year at the earliest, so don' t delay !
p . small . muted by Balduranne , tricksy . fox , and SabreCat
. promo _ember _potions . left - margin . align - self - center
2017-08-01 18:52:49 +00:00
. modal - footer
a . btn . btn - info ( href = 'http://habitica.wikia.com/wiki/Whats_New' , target = '_blank' ) { { this . $t ( 'newsArchive' ) } }
button . btn . btn - default ( @ click = 'close()' ) { { this . $t ( 'cool' ) } }
2017-08-26 02:56:21 +00:00
button . btn . btn - warning ( @ click = 'dismissAlert();' ) { { this . $t ( 'dismissAlert' ) } }
2017-08-01 18:52:49 +00:00
< / template >
2017-08-30 22:59:31 +00:00
< style lang = 'scss' scoped >
@ import '~client/assets/scss/static.scss' ;
. modal - body {
padding - top : 2 em ;
}
. left - margin {
margin - left : 1 em ;
}
. right - margin {
margin - right : 1 em ;
}
< / style >
2017-08-01 18:52:49 +00:00
< script >
import bModal from 'bootstrap-vue/lib/components/modal' ;
2017-08-26 02:56:21 +00:00
import { mapState } from 'client/libs/store' ;
2017-08-30 22:59:31 +00:00
import markdown from 'client/directives/markdown' ;
2017-08-01 18:52:49 +00:00
export default {
components : {
bModal ,
} ,
2017-08-30 22:59:31 +00:00
computed : {
... mapState ( { user : 'user.data' } ) ,
} ,
2017-08-01 18:52:49 +00:00
data ( ) {
let worldDmg = {
2017-08-30 22:59:31 +00:00
bailey : false ,
2017-08-01 18:52:49 +00:00
} ;
return {
baileyClass : {
'npc_bailey_broken' : worldDmg . bailey , // eslint-disable-line
'npc_bailey' : ! worldDmg . bailey , // eslint-disable-line
} ,
} ;
} ,
2017-08-30 22:59:31 +00:00
directives : {
markdown ,
2017-08-01 18:52:49 +00:00
} ,
methods : {
close ( ) {
this . $root . $emit ( 'hide::modal' , 'new-stuff' ) ;
} ,
2017-08-26 02:56:21 +00:00
dismissAlert ( ) {
this . $store . dispatch ( 'user:set' , { 'flags.newStuff' : false } ) ;
this . close ( ) ;
} ,
2017-08-01 18:52:49 +00:00
} ,
} ;
< / script >