This commit is contained in:
Henry Jameson 2021-04-12 00:07:28 +03:00
parent 5fdc4a1904
commit f0641d05df
3 changed files with 16 additions and 7 deletions

View file

@ -118,7 +118,10 @@
</div>
</div>
<Flash v-if="type === 'flash'" :src="attachment.large_thumb_url || attachment.url" />
<Flash
v-if="type === 'flash'"
:src="attachment.large_thumb_url || attachment.url"
/>
</div>
</template>

View file

@ -3,7 +3,7 @@ import { library } from '@fortawesome/fontawesome-svg-core'
import { faStop } from '@fortawesome/free-solid-svg-icons'
library.add(
faStop,
faStop
)
const Flash = {

View file

@ -8,13 +8,19 @@
/>
<button
v-if="player === false || player === 'hidden'"
@click="openPlayer"
class="button-unstyled placeholder"
@click="openPlayer"
>
<span v-if="player === 'hidden'" class="label">
<span
v-if="player === 'hidden'"
class="label"
>
{{ $t('general.loading') }}
</span>
<span v-else class="label">
<span
v-else
class="label"
>
{{ $t('general.flash_content') }}
</span>
</button>
@ -24,8 +30,8 @@
@click="closePlayer"
>
<FAIcon icon="stop" />
</button>
</div>
</button>
</div>
</template>
<script src="./flash.js"></script>