mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
tweet confirmation added
This commit is contained in:
@@ -757,5 +757,6 @@
|
|||||||
"Article not approved yet": "Artikel noch nicht genehmigt",
|
"Article not approved yet": "Artikel noch nicht genehmigt",
|
||||||
"Article tweeted": "Artikel getwittert",
|
"Article tweeted": "Artikel getwittert",
|
||||||
"Error tweeting article": "Fehler beim Twittern des Artikels",
|
"Error tweeting article": "Fehler beim Twittern des Artikels",
|
||||||
"Tweet": "Tweet"
|
"Tweet": "Tweet",
|
||||||
|
"Are you sure you want to tweet this article?": "Bitte bestätige, dass du diesen Artikel tweeten möchtest."
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -753,5 +753,6 @@
|
|||||||
"Article not approved yet": "",
|
"Article not approved yet": "",
|
||||||
"Article tweeted": "",
|
"Article tweeted": "",
|
||||||
"Error tweeting article": "",
|
"Error tweeting article": "",
|
||||||
"Tweet": ""
|
"Tweet": "",
|
||||||
|
"Are you sure you want to tweet this article?": ""
|
||||||
}
|
}
|
||||||
@@ -753,5 +753,6 @@
|
|||||||
"Article not approved yet": "",
|
"Article not approved yet": "",
|
||||||
"Article tweeted": "",
|
"Article tweeted": "",
|
||||||
"Error tweeting article": "",
|
"Error tweeting article": "",
|
||||||
"Tweet": ""
|
"Tweet": "",
|
||||||
|
"Are you sure you want to tweet this article?": ""
|
||||||
}
|
}
|
||||||
@@ -754,5 +754,6 @@
|
|||||||
"Article not approved yet": "",
|
"Article not approved yet": "",
|
||||||
"Article tweeted": "",
|
"Article tweeted": "",
|
||||||
"Error tweeting article": "",
|
"Error tweeting article": "",
|
||||||
"Tweet": ""
|
"Tweet": "",
|
||||||
|
"Are you sure you want to tweet this article?": ""
|
||||||
}
|
}
|
||||||
@@ -754,5 +754,6 @@
|
|||||||
"Article not approved yet": "",
|
"Article not approved yet": "",
|
||||||
"Article tweeted": "",
|
"Article tweeted": "",
|
||||||
"Error tweeting article": "",
|
"Error tweeting article": "",
|
||||||
"Tweet": ""
|
"Tweet": "",
|
||||||
|
"Are you sure you want to tweet this article?": ""
|
||||||
}
|
}
|
||||||
@@ -754,5 +754,6 @@
|
|||||||
"Article not approved yet": "",
|
"Article not approved yet": "",
|
||||||
"Article tweeted": "",
|
"Article tweeted": "",
|
||||||
"Error tweeting article": "",
|
"Error tweeting article": "",
|
||||||
"Tweet": ""
|
"Tweet": "",
|
||||||
|
"Are you sure you want to tweet this article?": ""
|
||||||
}
|
}
|
||||||
@@ -754,5 +754,6 @@
|
|||||||
"Article not approved yet": "",
|
"Article not approved yet": "",
|
||||||
"Article tweeted": "",
|
"Article tweeted": "",
|
||||||
"Error tweeting article": "",
|
"Error tweeting article": "",
|
||||||
"Tweet": ""
|
"Tweet": "",
|
||||||
|
"Are you sure you want to tweet this article?": ""
|
||||||
}
|
}
|
||||||
@@ -754,5 +754,6 @@
|
|||||||
"Article not approved yet": "",
|
"Article not approved yet": "",
|
||||||
"Article tweeted": "",
|
"Article tweeted": "",
|
||||||
"Error tweeting article": "",
|
"Error tweeting article": "",
|
||||||
"Tweet": ""
|
"Tweet": "",
|
||||||
|
"Are you sure you want to tweet this article?": ""
|
||||||
}
|
}
|
||||||
@@ -754,5 +754,6 @@
|
|||||||
"Article not approved yet": "",
|
"Article not approved yet": "",
|
||||||
"Article tweeted": "",
|
"Article tweeted": "",
|
||||||
"Error tweeting article": "",
|
"Error tweeting article": "",
|
||||||
"Tweet": ""
|
"Tweet": "",
|
||||||
|
"Are you sure you want to tweet this article?": ""
|
||||||
}
|
}
|
||||||
@@ -716,5 +716,6 @@
|
|||||||
"Article not approved yet": "",
|
"Article not approved yet": "",
|
||||||
"Article tweeted": "",
|
"Article tweeted": "",
|
||||||
"Error tweeting article": "",
|
"Error tweeting article": "",
|
||||||
"Tweet": ""
|
"Tweet": "",
|
||||||
|
"Are you sure you want to tweet this article?": ""
|
||||||
}
|
}
|
||||||
@@ -728,5 +728,6 @@
|
|||||||
"Article not approved yet": "",
|
"Article not approved yet": "",
|
||||||
"Article tweeted": "",
|
"Article tweeted": "",
|
||||||
"Error tweeting article": "",
|
"Error tweeting article": "",
|
||||||
"Tweet": ""
|
"Tweet": "",
|
||||||
|
"Are you sure you want to tweet this article?": ""
|
||||||
}
|
}
|
||||||
@@ -68,20 +68,35 @@
|
|||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="flex flex-wrap space-x-1 text-sm text-gray-500 justify-end items-end">
|
class="flex space-x-1 text-sm text-gray-500 justify-end items-end">
|
||||||
@if($libraryItem->created_by === auth()->id() || auth()->user()?->hasRole('news-editor'))
|
@if($libraryItem->created_by === auth()->id() || auth()->user()?->hasRole('news-editor'))
|
||||||
<div>
|
<div>
|
||||||
@if($libraryItem->approved)
|
@if($libraryItem->approved)
|
||||||
|
<div>
|
||||||
<x-badge green>{{ __('approved') }}</x-badge>
|
<x-badge green>{{ __('approved') }}</x-badge>
|
||||||
@if(auth()->user()?->hasRole('news-editor') && !$libraryItem->tweet)
|
</div>
|
||||||
|
@else
|
||||||
|
<div>
|
||||||
|
<x-badge negative>{{ __('not approved') }}</x-badge>
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
@if($libraryItem->approved && auth()->user()?->hasRole('news-editor') && !$libraryItem->tweet)
|
||||||
|
<div x-data="{}">
|
||||||
<x-button xs
|
<x-button xs
|
||||||
wire:click="tweet({{ $libraryItem->id }})">
|
x-on:click="$wireui.confirmDialog({
|
||||||
|
icon: 'question',
|
||||||
|
title: '{{ __('Are you sure you want to tweet this article?')}}',
|
||||||
|
accept: {label: '{{ __('Yes') }}',
|
||||||
|
execute: () => $wire.tweet({{ $libraryItem->id }})},
|
||||||
|
reject: {label: '{{ __('No, cancel') }}'},
|
||||||
|
})"
|
||||||
|
>
|
||||||
<i class="fa fa-brand fa-twitter"></i>
|
<i class="fa fa-brand fa-twitter"></i>
|
||||||
{{ __('Tweet') }}
|
{{ __('Tweet') }}
|
||||||
</x-button>
|
</x-button>
|
||||||
@endif
|
</div>
|
||||||
@else
|
|
||||||
<x-badge negative>{{ __('not approved') }}</x-badge>
|
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
Reference in New Issue
Block a user