diff options
author | GeckoEidechse <gecko.eidechse+git@pm.me> | 2023-02-06 00:46:15 +0100 |
---|---|---|
committer | GeckoEidechse <gecko.eidechse+git@pm.me> | 2023-02-06 00:46:15 +0100 |
commit | 9093d938a8eb905d524f0b4308e4cb15a64d0c2a (patch) | |
tree | ad3bbc510f4e9a7794082e03858ae25a0dceffbe /src-vue/src/views/DeveloperView.vue | |
parent | 38ff76aad91bc1ce344cdb08366c23523dbb8e1b (diff) | |
download | FlightCore-9093d938a8eb905d524f0b4308e4cb15a64d0c2a.tar.gz FlightCore-9093d938a8eb905d524f0b4308e4cb15a64d0c2a.zip |
feat: Parse whether mod is enabled/disabled
Diffstat (limited to 'src-vue/src/views/DeveloperView.vue')
-rw-r--r-- | src-vue/src/views/DeveloperView.vue | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src-vue/src/views/DeveloperView.vue b/src-vue/src/views/DeveloperView.vue index d8423450..dea0e1e3 100644 --- a/src-vue/src/views/DeveloperView.vue +++ b/src-vue/src/views/DeveloperView.vue @@ -64,6 +64,25 @@ placeholder="Paste log content here" /> + <div> + <el-table :data="logResults"> + <el-table-column prop="northstar_launcher_version" + label="Northstar Launcher Version"></el-table-column> + <el-table-column prop="installed_mods" label="Installed and enabled/disabled Mods"> + <template v-slot="{ row }"> + <ul> + <li v-for="mod in row.installed_mods"> + <el-icon class="no-inherit"> + <Select v-if="mod.enabled" /> + <Close v-else /> + </el-icon> + {{ mod.mod_name }} + </li> + </ul> + </template> + </el-table-column> + </el-table> + </div> </el-scrollbar> </div> </template> @@ -75,6 +94,7 @@ import { ElNotification } from "element-plus"; import { GameInstall } from "../utils/GameInstall"; import { Store } from 'tauri-plugin-store-api'; import { ParsedLogResults } from "../../../src-tauri/bindings/ParsedLogResults"; +import { ParsedModFromLog } from "../../../src-tauri/bindings/ParsedModFromLog"; const persistentStore = new Store('flight-core-settings.json'); export default defineComponent({ @@ -83,6 +103,7 @@ export default defineComponent({ return { mod_to_install_field_string : "", log_content : "", + logResults: [] as ParsedLogResults[] } }, methods: { @@ -228,6 +249,7 @@ export default defineComponent({ await invoke<[ParsedLogResults]>("parse_given_log_text", { logText: current_log_content }) .then((message) => { console.log(message); // TODO present better here + this.logResults.push(message); // Show user notification if task completed. ElNotification({ title: `Done`, |