mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
icsUrls
This commit is contained in:
@@ -59,6 +59,8 @@ class MeetupTable extends DataTableComponent
|
|||||||
->label(
|
->label(
|
||||||
fn($row, Column $column) => view('columns.meetups.action')
|
fn($row, Column $column) => view('columns.meetups.action')
|
||||||
->withRow($row)
|
->withRow($row)
|
||||||
|
->withIcs(route('meetup.ics',
|
||||||
|
['country' => $this->country ?? $row->city->country->code, 'meetup' => $row->id]))
|
||||||
->withCountry($this->country)
|
->withCountry($this->country)
|
||||||
)
|
)
|
||||||
->collapseOnMobile(),
|
->collapseOnMobile(),
|
||||||
|
|||||||
@@ -25,10 +25,8 @@
|
|||||||
<x-button
|
<x-button
|
||||||
xs
|
xs
|
||||||
black
|
black
|
||||||
x-data="{
|
x-data="{}"
|
||||||
textToCopy: '{{ route('meetup.ics', ['country' => $country ?? $row->city->country->code, 'meetup' => $row->id]) }}',
|
@click.prevent="window.navigator.clipboard.writeText('{{ $ics }}');window.$wireui.notify({title:'{{ __('Calendar Stream Url copied!') }}',description:'{{ __('Paste the calendar stream link into a compatible calendar app.') }}',icon:'success'});"
|
||||||
}"
|
|
||||||
@click.prevent="window.navigator.clipboard.writeText(textToCopy);window.$wireui.notify({title:'{{ __('Calendar Stream Url copied!') }}',description:'{{ __('Paste the calendar stream link into a compatible calendar app.') }}',icon:'success'});"
|
|
||||||
>
|
>
|
||||||
<i class="fa fa-thin fa-calendar-arrow-down mr-2"></i>
|
<i class="fa fa-thin fa-calendar-arrow-down mr-2"></i>
|
||||||
{{ __('Calendar Stream-Url') }} ({{ $row->meetup_events_count }})
|
{{ __('Calendar Stream-Url') }} ({{ $row->meetup_events_count }})
|
||||||
|
|||||||
Reference in New Issue
Block a user