mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
13 lines
438 B
TypeScript
13 lines
438 B
TypeScript
import { create } from '@bufbuild/protobuf';
|
|
import webClient from '../../WebClient';
|
|
|
|
import { SessionPersistence } from '../../persistence';
|
|
import { Data } from '@app/types';
|
|
|
|
export function deckDelDir(path: string): void {
|
|
webClient.protobuf.sendSessionCommand(Data.Command_DeckDelDir_ext, create(Data.Command_DeckDelDirSchema, { path }), {
|
|
onSuccess: () => {
|
|
SessionPersistence.deleteServerDeckDir(path);
|
|
},
|
|
});
|
|
}
|