2017-10-17 11:27:15 +02:00

9 lines
332 B
TypeScript

import { AnimeNotifier } from "../AnimeNotifier"
// New soundtrack
export function newSoundTrack(arn: AnimeNotifier, button: HTMLButtonElement) {
arn.post("/api/new/soundtrack", "")
.then(response => response.json())
.then(track => arn.app.load(`/soundtrack/${track.id}/edit`))
.catch(err => arn.statusMessage.showError(err))
}