mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-25 05:29:07 +01:00
attempt fix
This commit is contained in:
parent
dc22ff0ba7
commit
0f94eb04c2
@ -211,6 +211,7 @@ function changeProfile(ev: MouseEvent) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function deleteProfile() {
|
async function deleteProfile() {
|
||||||
|
console.log(deckStore.state.profile)
|
||||||
const { canceled } = await os.confirm({
|
const { canceled } = await os.confirm({
|
||||||
type: 'warning',
|
type: 'warning',
|
||||||
text: i18n.t('deleteAreYouSure', { x: deckStore.state.profile }),
|
text: i18n.t('deleteAreYouSure', { x: deckStore.state.profile }),
|
||||||
@ -347,7 +348,8 @@ async function deleteProfile() {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
margin: -0.5rem;
|
margin: -0.35rem;
|
||||||
|
transform: scale(0.8);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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", {
|
return await api("i/registry/remove", {
|
||||||
scope: ["client", "deck", "profiles"],
|
scope: ["client", "deck", "profiles"],
|
||||||
key: key,
|
key: key,
|
||||||
|
Loading…
Reference in New Issue
Block a user