1
0
mirror of https://github.com/TeamPiped/Piped.git synced 2024-12-13 22:00:28 +05:30

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" :title="(isListening ? 'Watch ' : 'Listen to ') + video.title"
class="uk-margin-small-left uk-button uk-button-small" 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> </router-link>
</div> </div>

View File

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