Show toast when submitting an issue

This commit is contained in:
2019-11-24 21:37:16 +01:00
parent 0a84223778
commit a2c00d929d

View File

@@ -48,7 +48,9 @@
Search for torrents Search for torrents
</sidebar-list-element> </sidebar-list-element>
<sidebar-list-element @click="reportIssue" :iconRef="null" :active="showIssueForm"> <sidebar-list-element @click="showIssueForm = !showIssueForm"
:iconRef="null"
:active="showIssueForm">
&nbsp; &nbsp;Report an issue! &nbsp; &nbsp;Report an issue!
</sidebar-list-element> </sidebar-list-element>
@@ -107,7 +109,7 @@
:value.sync="selectedIssue" /> :value.sync="selectedIssue" />
<TextArea title="Additional information" :rows="3" <TextArea title="Additional information" :rows="3"
placeholder="Placeholder text" /> placeholder="Placeholder text" />
<SeasonedButton>Report issue</SeasonedButton> <SeasonedButton @click="reportIssue">Report issue</SeasonedButton>
</div> </div>
</div> </div>
@@ -207,7 +209,13 @@ export default {
window.location.href = 'https://www.themoviedb.org/' + tmdbType + '/' + this.id window.location.href = 'https://www.themoviedb.org/' + tmdbType + '/' + this.id
}, },
reportIssue() { reportIssue() {
this.showIssueForm = !this.showIssueForm; if (this.showIssueForm) {
this.$notifications.success({
title: 'Issue successfully submitted',
description: 'Reported issue: Missing subtitles',
timeout: 300000
})
}
} }
}, },
watch: { watch: {