Commit 62465342 authored by Bat's avatar Bat
Browse files

Page title binding

Fix #1
parent 7191a2a2
......@@ -30,6 +30,10 @@ require('masonry-layout')
Vue.config.productionTip = false
Vue.directive('title', {
inserted: (el, binding) => { console.log(binding.value); document.title = binding.value + ' - Funkwhale' },
updated: (el, binding) => { document.title = binding.value + ' - Funkwhale' }
axios.defaults.baseURL = config.API_URL
axios.interceptors.request.use(function (config) {
<div class="main pusher">
<div class="main pusher" v-title="'Instance Timeline'">
<div class="ui vertical center aligned stripe segment">
<div v-if="isLoading" :class="['ui', {'active': isLoading}, 'inverted', 'dimmer']">
<div class="ui text loader">Loading timeline...</div>
<div v-if="isLoading" class="ui vertical segment">
<div v-if="isLoading" class="ui vertical segment" v-title="'Playlist'">
<div :class="['ui', 'centered', 'active', 'inline', 'loader']"></div>
<div v-if="!isLoading && playlist" class="ui head vertical center aligned stripe segment">
<div v-if="!isLoading && playlist" class="ui head vertical center aligned stripe segment" v-title="">
<div class="segment-content">
<h2 class="ui center aligned icon header">
<i class="circular inverted list yellow icon"></i>
<div v-title="'Playlists'">
<div class="ui vertical stripe segment">
<h2 class="ui header">Browsing playlists</h2>
<div :class="['ui', {'loading': isLoading}, 'form']">
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment