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.vue25
1 files changed, 22 insertions, 3 deletions
diff --git a/src-vue/src/views/DeveloperView.vue b/src-vue/src/views/DeveloperView.vue
index 7e11bd11..77d43afc 100644
--- a/src-vue/src/views/DeveloperView.vue
+++ b/src-vue/src/views/DeveloperView.vue
@@ -50,7 +50,14 @@
</el-button>
<h3>Release management</h3>
-
+ <el-select v-model="selected_project" placeholder="Select">
+ <el-option
+ v-for="item in project"
+ :key="item.value"
+ :label="item.label"
+ :value="item.value"
+ />
+ </el-select>
<el-button type="primary" @click="getTags">
Get tags
</el-button>
@@ -93,6 +100,7 @@ import { GameInstall } from "../utils/GameInstall";
import { TagWrapper } from "../../../src-tauri/bindings/TagWrapper";
import PullRequestsSelector from "../components/PullRequestsSelector.vue";
import { showErrorNotification, showNotification } from "../utils/ui";
+import { Project } from "../../../src-tauri/bindings/Project"
export default defineComponent({
name: "DeveloperView",
@@ -106,6 +114,17 @@ export default defineComponent({
first_tag: { label: '', value: {name: ''} },
second_tag: { label: '', value: {name: ''} },
ns_release_tags: [] as TagWrapper[],
+ selected_project: "FlightCore",
+ project: [
+ {
+ value: 'FlightCore',
+ label: 'FlightCore',
+ },
+ {
+ value: 'Northstar',
+ label: 'Northstar',
+ }
+ ],
}
},
computed: {
@@ -182,7 +201,7 @@ export default defineComponent({
});
},
async getTags() {
- await invoke<TagWrapper[]>("get_list_of_tags")
+ await invoke<TagWrapper[]>("get_list_of_tags", {project: this.selected_project})
.then((message) => {
this.ns_release_tags = message;
showNotification("Done", "Fetched tags");
@@ -192,7 +211,7 @@ export default defineComponent({
});
},
async compareTags() {
- await invoke<string>("compare_tags", {firstTag: this.firstTag.value, secondTag: this.secondTag.value})
+ await invoke<string>("compare_tags", {project: this.selected_project, firstTag: this.firstTag.value, secondTag: this.secondTag.value})
.then((message) => {
this.release_notes_text = message;
showNotification("Done", "Generated release notes");