mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-11-22 13:37:23 +00:00
Merge pull request #1659 from Bnyro/master
Remember the share dialog settings
This commit is contained in:
commit
f574abbf7f
@ -3,11 +3,11 @@
|
|||||||
<h2 v-t="'actions.share'" />
|
<h2 v-t="'actions.share'" />
|
||||||
<div class="flex justify-between mt-4">
|
<div class="flex justify-between mt-4">
|
||||||
<label v-t="'actions.with_timecode'" for="withTimeCode" />
|
<label v-t="'actions.with_timecode'" for="withTimeCode" />
|
||||||
<input id="withTimeCode" type="checkbox" v-model="withTimeCode" />
|
<input id="withTimeCode" type="checkbox" v-model="withTimeCode" @change="onChange" />
|
||||||
</div>
|
</div>
|
||||||
<div class="flex justify-between">
|
<div class="flex justify-between">
|
||||||
<label v-t="'actions.piped_link'" />
|
<label v-t="'actions.piped_link'" />
|
||||||
<input type="checkbox" v-model="pipedLink" />
|
<input type="checkbox" v-model="pipedLink" @change="onChange" />
|
||||||
</div>
|
</div>
|
||||||
<div class="flex justify-between mt-2">
|
<div class="flex justify-between mt-2">
|
||||||
<label v-t="'actions.time_code'" />
|
<label v-t="'actions.time_code'" />
|
||||||
@ -47,6 +47,8 @@ export default {
|
|||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.timeStamp = parseInt(this.currentTime);
|
this.timeStamp = parseInt(this.currentTime);
|
||||||
|
this.withTimeCode = this.getPreferenceBoolean("shareWithTimeCode", true);
|
||||||
|
this.pipedLink = this.getPreferenceBoolean("shareAsPipedLink", true);
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
followLink() {
|
followLink() {
|
||||||
@ -63,6 +65,10 @@ export default {
|
|||||||
alert(this.$t("info.cannot_copy"));
|
alert(this.$t("info.cannot_copy"));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
onChange() {
|
||||||
|
this.setPreference("shareWithTimeCode", this.withTimeCode);
|
||||||
|
this.setPreference("shareAsPipedLink", this.pipedLink);
|
||||||
|
},
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
generatedLink() {
|
generatedLink() {
|
||||||
|
Loading…
Reference in New Issue
Block a user