Show a different icon when already listening.

Closes #544
This commit is contained in:
FireMaskterK 2021-10-17 15:18:51 +01:00
parent 7a13dc923e
commit 7baa3fbe34
No known key found for this signature in database
GPG key ID: 49451E4482CC5BCD
2 changed files with 3 additions and 1 deletions

View file

@ -59,7 +59,7 @@
:title="(isListening ? 'Watch ' : 'Listen to ') + video.title"
class="uk-margin-small-left uk-button uk-button-small"
>
<font-awesome-icon icon="headphones"></font-awesome-icon>
<font-awesome-icon :icon="isListening ? 'tv' : 'headphones'"></font-awesome-icon>
</router-link>
</div>

View file

@ -10,6 +10,7 @@ import {
faHeadphones,
faRss,
faChevronLeft,
faTv,
} from "@fortawesome/free-solid-svg-icons";
import { faGithub, faBitcoin, faYoutube } from "@fortawesome/free-brands-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
@ -26,6 +27,7 @@ library.add(
faYoutube,
faRss,
faChevronLeft,
faTv,
);
import("uikit/dist/css/uikit-core.css");