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>
</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> </div>
</template> </template>

View file

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

View file

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