attempt fix

This commit is contained in:
ThatOneCalculator 2023-04-02 00:21:43 -07:00
parent 08ba6700ac
commit d50bafef88
No known key found for this signature in database
GPG key ID: 8703CACD01000000
2 changed files with 4 additions and 2 deletions

View file

@ -211,6 +211,7 @@ function changeProfile(ev: MouseEvent) {
}
async function deleteProfile() {
console.log(deckStore.state.profile)
const { canceled } = await os.confirm({
type: 'warning',
text: i18n.t('deleteAreYouSure', { x: deckStore.state.profile }),
@ -347,7 +348,8 @@ async function deleteProfile() {
align-items: center;
justify-content: center;
border-radius: 10px;
margin: -0.5rem;
margin: -0.35rem;
transform: scale(0.8);
}
}

View file

@ -108,7 +108,7 @@ export async function getProfiles(): Promise<string[]> {
});
}
export async function deleteProfile(key: string): Promise<void> {
export async function deleteProfile(key: string): Promise<any> {
return await api("i/registry/remove", {
scope: ["client", "deck", "profiles"],
key: key,