lnbits paid articles added

This commit is contained in:
HolgerHatGarKeineNode
2023-03-13 17:11:31 +01:00
parent cfd6156937
commit 07be5d9b0c
2 changed files with 8 additions and 2 deletions

View File

@@ -24,9 +24,12 @@ class NewsArticleForm extends Component
public array $temporaryUrls = [];
public ?string $fromUrl = '';
public string $type = '';
public bool $paid = false;
protected $queryString = ['fromUrl' => ['except' => ''], 'paid' => ['except' => false]];
protected $queryString = ['fromUrl' => ['except' => ''], 'type' => ['except' => '']];
public function rules()
{
@@ -50,6 +53,9 @@ class NewsArticleForm extends Component
public function mount()
{
if ($this->type === 'paid') {
$this->paid = true;
}
if ($this->libraryItem === null) {
$this->libraryItem = new LibraryItem([
'type' => 'markdown_article',