relax permissions on test notification action
This commit is contained in:
@ -346,17 +346,17 @@ function PwaManager({ subs }) {
|
|||||||
>
|
>
|
||||||
Спри известията на всички мои устройства {_subs != "" ? `(${_subs})` : ""}
|
Спри известията на всички мои устройства {_subs != "" ? `(${_subs})` : ""}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
|
||||||
{isAdmin &&
|
|
||||||
<div>
|
|
||||||
<button
|
<button
|
||||||
onClick={sendTestNotification}
|
onClick={sendTestNotification}
|
||||||
disabled={!isSubscribed}
|
disabled={!isSubscribed}
|
||||||
className={`text-xs py-1 px-2 rounded-full focus:outline-none transition duration-150 ease-in-out ${!isSubscribed ? 'cursor-not-allowed bg-gray-300 text-gray-500' : 'bg-yellow-500 hover:bg-yellow-600 text-white'
|
className={`text-xs py-1 px-2 rounded-full focus:outline-none transition duration-150 ease-in-out ${!isSubscribed ? 'cursor-not-allowed bg-gray-300 text-gray-500' : 'bg-yellow-500 hover:bg-yellow-600 text-white'
|
||||||
}`}
|
}`}
|
||||||
>
|
>
|
||||||
Send Test Notification
|
Тестово уведомление
|
||||||
</button>
|
</button>
|
||||||
|
</div>
|
||||||
|
{isAdmin &&
|
||||||
|
<div>
|
||||||
<button
|
<button
|
||||||
onClick={sendTestReminder}
|
onClick={sendTestReminder}
|
||||||
disabled={!isSubscribed}
|
disabled={!isSubscribed}
|
||||||
|
Reference in New Issue
Block a user