41 lines
1.2 KiB
Vue
41 lines
1.2 KiB
Vue
<template>
|
|
<div class="outside-card-header d-flex align-items-center mb-3">
|
|
<div class="flex-shrink-0 mr-3" v-if="np.station.listen_url">
|
|
<play-button icon-class="outlined xl" :url="np.station.listen_url" is-stream></play-button>
|
|
</div>
|
|
<div class="flex-fill">
|
|
<h2 class="m-0">{{ stationName }}</h2>
|
|
<h3 class="m-0" v-if="stationDescription">{{ stationDescription }}</h3>
|
|
</div>
|
|
<div class="flex-shrink-0 ml-3" v-if="userCanManageProfile">
|
|
<a class="btn btn-primary btn-lg" role="button" :href="manageProfileUri">
|
|
<icon icon="edit"></icon>
|
|
{{ $gettext('Edit Profile') }}
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import Icon from '~/components/Common/Icon';
|
|
import PlayButton from "../../Common/PlayButton";
|
|
|
|
export const profileHeaderProps = {
|
|
props: {
|
|
stationName: String,
|
|
stationDescription: String,
|
|
userCanManageProfile: Boolean,
|
|
manageProfileUri: String
|
|
}
|
|
};
|
|
|
|
export default {
|
|
inheritAttrs: false,
|
|
props: {
|
|
np: Object
|
|
},
|
|
components: {PlayButton, Icon},
|
|
mixins: [profileHeaderProps]
|
|
};
|
|
</script>
|