Now use raven-js on frontend

This commit is contained in:
Eliot Berriot 2018-02-17 21:23:45 +01:00
parent aa67be9063
commit 26028040a3
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
3 changed files with 51 additions and 1 deletions

View file

@ -22,15 +22,23 @@
</div>
</div>
</div>
<raven
v-if="$store.state.instance.settings.raven.front_enabled.value"
:dsn="$store.state.instance.settings.raven.front_dsn.value">
</raven>
</div>
</template>
<script>
import Sidebar from '@/components/Sidebar'
import Raven from '@/components/Raven'
export default {
name: 'app',
components: { Sidebar }
components: {
Sidebar,
Raven
},
created () {
this.$store.dispatch('instance/fetchSettings')
}