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(
|
||||
fn($row, Column $column) => view('columns.meetups.action')
|
||||
->withRow($row)
|
||||
->withIcs(route('meetup.ics',
|
||||
['country' => $this->country ?? $row->city->country->code, 'meetup' => $row->id]))
|
||||
->withCountry($this->country)
|
||||
)
|
||||
->collapseOnMobile(),
|
||||
@@ -92,8 +94,8 @@ class MeetupTable extends DataTableComponent
|
||||
->find($id);
|
||||
|
||||
return to_route('meetup.table.meetupEvent', [
|
||||
'country' => $this->country ?? $meetup->city->country->code,
|
||||
'meetup_events' => [
|
||||
'country' => $this->country ?? $meetup->city->country->code,
|
||||
'meetup_events' => [
|
||||
'filters' => ['bymeetupid' => $id],
|
||||
]
|
||||
]);
|
||||
|
||||
@@ -25,10 +25,8 @@
|
||||
<x-button
|
||||
xs
|
||||
black
|
||||
x-data="{
|
||||
textToCopy: '{{ route('meetup.ics', ['country' => $country ?? $row->city->country->code, 'meetup' => $row->id]) }}',
|
||||
}"
|
||||
@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'});"
|
||||
x-data="{}"
|
||||
@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'});"
|
||||
>
|
||||
<i class="fa fa-thin fa-calendar-arrow-down mr-2"></i>
|
||||
{{ __('Calendar Stream-Url') }} ({{ $row->meetup_events_count }})
|
||||
|
||||
Reference in New Issue
Block a user