Skip to content
This repository has been archived by the owner on Jun 13, 2022. It is now read-only.

Commit

Permalink
fix(core): fix the rendering of the Subscribe modal
Browse files Browse the repository at this point in the history
  • Loading branch information
juliomrqz committed Dec 11, 2018
1 parent 71d3854 commit 34c03a2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
5 changes: 4 additions & 1 deletion packages/@statusfy/core/client/components/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
class="title">
{{ $t('title') }}
</component>
<Subscribe class="subscribe-container"/>

<no-ssr>
<Subscribe class="subscribe-container"/>
</no-ssr>
</div>
</template>

Expand Down
17 changes: 4 additions & 13 deletions packages/@statusfy/core/client/components/Subscribe.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
@click="toggleModal">{{ $t('notifications.buttons.subscribe') }}</button>

<div
v-show="isModalActive"
v-if="isModalActive"
class="modal-container"
@click.self="toggleModal">
<div class="modal-body">
Expand Down Expand Up @@ -100,20 +100,11 @@ export default {
return results
},
icalendarUrl () {
if (process.client) {
return `webcal://${window.location.hostname}/calendars/scheduled.${this.$i18n.locale}.ics`
} else {
return null
}
return `webcal://${window.location.hostname}/calendars/scheduled.${this.$i18n.locale}.ics`
},
feedsUrls () {
let atom
let rss
if (process.client) {
atom = `//${window.location.hostname}/feeds/incidents.${this.$i18n.locale}.atom`
rss = `//${window.location.hostname}/feeds/incidents.${this.$i18n.locale}.xml`
}
const atom = `//${window.location.hostname}/feeds/incidents.${this.$i18n.locale}.atom`
const rss = `//${window.location.hostname}/feeds/incidents.${this.$i18n.locale}.xml`
return {
atom,
Expand Down

0 comments on commit 34c03a2

Please sign in to comment.