mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
only my meetups events calendar stream url added
This commit is contained in:
@@ -25,8 +25,7 @@ class DownloadMeetupCalendar extends Controller
|
|||||||
$events = $meetup->meetupEvents;
|
$events = $meetup->meetupEvents;
|
||||||
$image = $meetup->getFirstMediaUrl('logo');
|
$image = $meetup->getFirstMediaUrl('logo');
|
||||||
} elseif ($request->has('my')) {
|
} elseif ($request->has('my')) {
|
||||||
$ids = auth()->user()->meetups->pluck('id')
|
$ids = $request->input('my');
|
||||||
->toArray();
|
|
||||||
$events = MeetupEvent::query()
|
$events = MeetupEvent::query()
|
||||||
->with([
|
->with([
|
||||||
'meetup',
|
'meetup',
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
</x-button>
|
</x-button>
|
||||||
<x-button
|
<x-button
|
||||||
x-data="{
|
x-data="{
|
||||||
textToCopy: '{{ route('meetup.ics', ['country' => $country, 'my' => true]) }}',
|
textToCopy: '{{ route('meetup.ics', ['country' => $country, 'my' => auth()->user()->meetups->pluck('id')->toArray()]) }}',
|
||||||
}"
|
}"
|
||||||
@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'});"
|
@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'});"
|
||||||
black>
|
black>
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
</x-button>
|
</x-button>
|
||||||
<x-button
|
<x-button
|
||||||
x-data="{
|
x-data="{
|
||||||
textToCopy: '{{ route('meetup.ics', ['country' => $country, 'my' => true]) }}',
|
textToCopy: '{{ route('meetup.ics', ['country' => $country, 'my' => auth()->user()->meetups->pluck('id')->toArray()]) }}',
|
||||||
}"
|
}"
|
||||||
@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'});"
|
@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'});"
|
||||||
black>
|
black>
|
||||||
@@ -31,7 +31,9 @@
|
|||||||
@click.prevent="window.navigator.clipboard.writeText(textToCopy);window.$wireui.notify({title:'{{ __('Embed code for the map copied!') }}',icon:'success'});"
|
@click.prevent="window.navigator.clipboard.writeText(textToCopy);window.$wireui.notify({title:'{{ __('Embed code for the map copied!') }}',icon:'success'});"
|
||||||
amber>
|
amber>
|
||||||
<i class="fa fa-thin fa-code mr-2"></i>
|
<i class="fa fa-thin fa-code mr-2"></i>
|
||||||
{{ __('Copy embed code for the map') }} <img class="h-6 rounded" src="{{ asset('vendor/blade-country-flags/4x3-'. $country->code .'.svg') }}" alt="{{ $country->code }}">
|
{{ __('Copy embed code for the map') }} <img class="h-6 rounded"
|
||||||
|
src="{{ asset('vendor/blade-country-flags/4x3-'. $country->code .'.svg') }}"
|
||||||
|
alt="{{ $country->code }}">
|
||||||
</x-button>
|
</x-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user