Add an indicator for v2 releases in the download popup #7

This commit is contained in:
2026-05-26 14:36:21 +02:00
parent 2f3f0edc30
commit 5dc1bff60c
5 changed files with 29 additions and 5 deletions
+10
View File
@@ -23,11 +23,21 @@ class DownloadButton extends Component
public $fileExtension = 'HEVC';
public $version = '';
public function mount()
{
if (str_contains($this->downloadUrl, 'AV1')) {
$this->fileExtension = 'AV1';
}
if (str_contains($this->downloadUrl, 'v2')) {
$this->version = 'v2';
}
if (str_contains($this->downloadUrl, 'v3')) {
$this->version = 'v3';
}
}
public function clicked($downloadId)