Skip to content

Commit

Permalink
Merge branch 'development' into vue3-test
Browse files Browse the repository at this point in the history
  • Loading branch information
ChunkyProgrammer committed Apr 19, 2024
2 parents d98a96a + 5d0dd3f commit 7b95c84
Show file tree
Hide file tree
Showing 12 changed files with 33 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export default defineComponent({
default: false,
}
},
emits: ['move-video-down', 'move-video-up', 'pause-player', 'remove-from-playlist'],
data: function () {
return {
visible: false,
Expand Down Expand Up @@ -136,6 +137,18 @@ export default defineComponent({
this.stopWatchingInitialVisibleState = null
}
}
},
pausePlayer: function () {
this.$emit('pause-player')
},
moveVideoUp: function () {
this.$emit('move-video-up')
},
moveVideoDown: function () {
this.$emit('move-video-down')
},
removeFromPlaylist: function () {
this.$emit('remove-from-playlist')
}
}
})
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@
:can-move-video-up="canMoveVideoUp"
:can-move-video-down="canMoveVideoDown"
:can-remove-from-playlist="canRemoveFromPlaylist"
@pause-player="$emit('pause-player')"
@move-video-up="$emit('move-video-up')"
@move-video-down="$emit('move-video-down')"
@remove-from-playlist="$emit('remove-from-playlist')"
@pause-player="pausePlayer"
@move-video-up="moveVideoUp"
@move-video-down="moveVideoDown"
@remove-from-playlist="removeFromPlaylist"
/>
</template>
</div>
Expand Down
1 change: 0 additions & 1 deletion src/renderer/components/ft-list-video/ft-list-video.js
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,6 @@ export default defineComponent({
// TODO: Maybe show playlist name
showToast(this.$t('Video.Video has been removed from your saved list'))
},

moveVideoUp: function() {
this.$emit('move-video-up')
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ export default defineComponent({
methods: {
click: function() {
this.$emit('click')
}
},
}
})
7 changes: 3 additions & 4 deletions src/renderer/components/ft-prompt/ft-prompt.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ export default defineComponent({
this.focusItem(0)
},
methods: {
click: function (value) {
this.$emit('click', value)
},
hide: function() {
this.$emit('click', null)
},
Expand Down Expand Up @@ -105,10 +108,6 @@ export default defineComponent({
}
},

click: function(option) {
this.$emit('click', option)
},

...mapActions([
'showOutlines'
])
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/components/ft-radio-button/ft-radio-button.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ export default defineComponent({
},
change: function(value) {
this.$emit('change', value)
}
},
}
})
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,15 @@ export default defineComponent({
required: true
}
},
emits: ['click'],
computed: {
isSideNavOpen: function () {
return this.$store.getters.getIsSideNavOpen
}
},
methods: {
click: function() {
this.$emit('click')
}
}
})
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
:title="$t('Feed.Refresh Feed', { subscriptionName: title })"
:size="12"
theme="primary"
@click="$emit('click')"
@click="click"
/>
</div>
</template>
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/components/ft-select/ft-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,5 @@ export default defineComponent({
change: function(value) {
this.$emit('change', value)
}
}
},
})
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ export default defineComponent({
methods: {
change: function () {
this.$emit('change', this.currentValue)
}
},
}
})
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
/>
</ft-flex-box>
</ft-auto-load-next-page-wrapper>

<ft-refresh-widget
:disable-refresh="isLoading || activeSubscriptionList.length === 0"
:last-refresh-timestamp="lastRefreshTimestamp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export default defineComponent({
required: true
}
},
emits: ['set-info-area-sticky', 'scroll-to-info-area', 'pause-player', 'change-format'],
emits: ['change-format', 'pause-player', 'set-info-area-sticky', 'scroll-to-info-area'],
computed: {
hideSharingActions: function() {
return this.$store.getters.getHideSharingActions
Expand Down

0 comments on commit 7b95c84

Please sign in to comment.