Skip to content

Commit

Permalink
Update settings.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Owen3H committed Nov 12, 2024
1 parent 392f1bf commit c0b28af
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions frontend/src/stores/settings.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { defineStore } from 'pinia'
import { ref } from 'vue'

import {
SetAnimationsEnabled,
Expand All @@ -12,8 +13,8 @@ import {
} from '@backend/app/AppSettings.js'

import type { app } from "@backend/models.js"
import type { Theme } from "@types"
import { ref } from 'vue'

//import type { Theme } from "@types"

// export interface SettingsState {

Expand All @@ -40,8 +41,7 @@ export const useSettingsStore = defineStore("SettingsStore", () => {

//#region Actions

// 'Save' here means updating the viper config in the backend.
// See: backend/core/settings.go
// 'Save' here means updating the viper config in the backend. Refer to the 'settings.go' file.
function setLocale(code: string, save = true) {
general.value.locale = code
if (save) SetLocale(code)
Expand Down

0 comments on commit c0b28af

Please sign in to comment.