aboutsummaryrefslogtreecommitdiff
path: root/src-vue/src/views/DeveloperView.vue
diff options
context:
space:
mode:
Diffstat (limited to 'src-vue/src/views/DeveloperView.vue')
-rw-r--r--src-vue/src/views/DeveloperView.vue14
1 files changed, 14 insertions, 0 deletions
diff --git a/src-vue/src/views/DeveloperView.vue b/src-vue/src/views/DeveloperView.vue
index f60d47b1..de83c9a8 100644
--- a/src-vue/src/views/DeveloperView.vue
+++ b/src-vue/src/views/DeveloperView.vue
@@ -123,6 +123,10 @@
Compare Tags
</el-button>
+ <el-button type="primary" @click="copyReleaseNotesToClipboard">
+ Copy to clipboard
+ </el-button>
+
<el-input
v-model="release_notes_text"
type="textarea"
@@ -262,6 +266,7 @@ export default defineComponent({
.then((message) => {
this.release_notes_text = message;
showNotification("Done", "Generated release notes");
+ this.copyReleaseNotesToClipboard();
})
.catch((error) => {
showErrorNotification(error);
@@ -336,6 +341,15 @@ export default defineComponent({
.then((message) => { showNotification(`NSProton Version`, message as string); })
.catch((error) => { showNotification(`Error`, error, "error"); })
},
+ async copyReleaseNotesToClipboard() {
+ navigator.clipboard.writeText(this.release_notes_text)
+ .then(() => {
+ showNotification("Copied to clipboard");
+ })
+ .catch(() => {
+ showErrorNotification("Failed copying to clipboard");
+ });
+ },
}
});
</script>