FreeTube/src/renderer/components/ft-notification-banner/ft-notification-banner.js

27 lines
490 B
JavaScript

import Vue from 'vue'
export default Vue.extend({
name: 'FtNotificationBanner',
props: {
message: {
type: String,
required: true
}
},
computed: {
progressBarPercentage: function () {
return this.$store.getters.getProgressBarPercentage
}
},
methods: {
handleClick: function (response) {
this.$emit('click', response)
},
handleClose: function (event) {
event.stopPropagation()
this.handleClick(false)
}
}
})