mirror of
https://github.com/KevinMidboe/seasoned.git
synced 2026-03-11 11:55:38 +00:00
Show toast when submitting an issue
This commit is contained in:
@@ -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">
|
||||||
⚠️ Report an issue!
|
⚠️ 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: {
|
||||||
|
|||||||
Reference in New Issue
Block a user