aboutsummaryrefslogtreecommitdiff
path: root/src-vue/src/views
diff options
context:
space:
mode:
authorJan <sentrycraft123@gmail.com>2023-08-09 23:09:59 +0200
committerGitHub <noreply@github.com>2023-08-09 23:09:59 +0200
commiteb1dabde7dacdd36fd7f2e5da6f343bc5ef7c6d4 (patch)
tree019321fd5724a3f504582b5d46dc2558a58ed63e /src-vue/src/views
parentdd9bf56734a87d70f1772af46b618b4c53fb0b42 (diff)
downloadFlightCore-eb1dabde7dacdd36fd7f2e5da6f343bc5ef7c6d4.tar.gz
FlightCore-eb1dabde7dacdd36fd7f2e5da6f343bc5ef7c6d4.zip
feat: Add dialog box with a table of all profiles (#501)
Does not yet include buttons to modify profiles. This has been moved into separate PR to keep diff small.
Diffstat (limited to 'src-vue/src/views')
-rw-r--r--src-vue/src/views/ChangelogView.vue4
-rw-r--r--src-vue/src/views/SettingsView.vue12
2 files changed, 16 insertions, 0 deletions
diff --git a/src-vue/src/views/ChangelogView.vue b/src-vue/src/views/ChangelogView.vue
index 7ab50903..f75d869c 100644
--- a/src-vue/src/views/ChangelogView.vue
+++ b/src-vue/src/views/ChangelogView.vue
@@ -63,6 +63,10 @@ export default defineComponent({
padding: 20px 30px;
}
+.el-table .el-scrollbar__view {
+ padding: 0;
+}
+
.fc__changelog__container {
padding: 20px 30px;
}
diff --git a/src-vue/src/views/SettingsView.vue b/src-vue/src/views/SettingsView.vue
index c209da31..b1a62c56 100644
--- a/src-vue/src/views/SettingsView.vue
+++ b/src-vue/src/views/SettingsView.vue
@@ -1,4 +1,14 @@
<template>
+ <el-dialog
+ v-model="showProfileDialog"
+ :title="$t('settings.profile.dialog.title')"
+ width="75%"
+ >
+ <el-table :data="availableProfiles" >
+ <el-table-column prop="name" label="Name" />
+ </el-table>
+ </el-dialog>
+
<div class="fc-container">
<el-scrollbar>
<div class="fc_settings__container">
@@ -31,6 +41,7 @@
<template #dropdown>
<el-dropdown-menu>
<el-dropdown-item v-for="profile in $store.state.available_profiles" @click="switchProfile(profile)">{{ profile }}</el-dropdown-item>
+ <el-dropdown-item divided @click="showProfileDialog = true">{{ $t('settings.profile.edit') }}</el-dropdown-item>
</el-dropdown-menu>
</template>
</el-dropdown>
@@ -121,6 +132,7 @@ export default defineComponent({
data() {
return {
developerModeClicks: 0,
+ showProfileDialog: false,
}
},
computed: {