Spaces:
Running
Running
axeronis commited on
Commit ·
5413eaa
1
Parent(s): a1dd431
feat(ui): Separate User ID and Group/Channel ID fields in Notification Settings
Browse files
frontend/app/settings/notifications/page.tsx
CHANGED
|
@@ -190,11 +190,11 @@ export default function NotificationSettingsPage() {
|
|
| 190 |
</div>
|
| 191 |
</div>
|
| 192 |
|
| 193 |
-
{/* Chat ID Input (Personal
|
| 194 |
<div className="mb-4">
|
| 195 |
<div className="flex gap-4">
|
| 196 |
<div className="flex-1">
|
| 197 |
-
<label className="block text-sm font-medium text-slate-400 mb-2">
|
| 198 |
<input
|
| 199 |
type="text"
|
| 200 |
value={chatId}
|
|
@@ -205,16 +205,16 @@ export default function NotificationSettingsPage() {
|
|
| 205 |
</div>
|
| 206 |
</div>
|
| 207 |
<p className="text-xs text-slate-500 mt-2">
|
| 208 |
-
|
| 209 |
</p>
|
| 210 |
</div>
|
| 211 |
|
| 212 |
-
{/* Channel ID Input (Owner Only) */}
|
| 213 |
{user?.role === 'OWNER' && (
|
| 214 |
<div className="pt-4 border-t border-white/10">
|
| 215 |
<div className="flex gap-4">
|
| 216 |
<div className="flex-1">
|
| 217 |
-
<label className="block text-sm font-medium text-slate-400 mb-2">ID Канала (
|
| 218 |
<input
|
| 219 |
type="text"
|
| 220 |
value={channelId}
|
|
@@ -225,7 +225,7 @@ export default function NotificationSettingsPage() {
|
|
| 225 |
</div>
|
| 226 |
</div>
|
| 227 |
<p className="text-xs text-slate-500 mt-2">
|
| 228 |
-
|
| 229 |
</p>
|
| 230 |
</div>
|
| 231 |
)}
|
|
|
|
| 190 |
</div>
|
| 191 |
</div>
|
| 192 |
|
| 193 |
+
{/* Chat ID Input (Personal Only) */}
|
| 194 |
<div className="mb-4">
|
| 195 |
<div className="flex gap-4">
|
| 196 |
<div className="flex-1">
|
| 197 |
+
<label className="block text-sm font-medium text-slate-400 mb-2">Ваш Личный ID (Private chat)</label>
|
| 198 |
<input
|
| 199 |
type="text"
|
| 200 |
value={chatId}
|
|
|
|
| 205 |
</div>
|
| 206 |
</div>
|
| 207 |
<p className="text-xs text-slate-500 mt-2">
|
| 208 |
+
Уведомления будут приходить вам в личные сообщения.
|
| 209 |
</p>
|
| 210 |
</div>
|
| 211 |
|
| 212 |
+
{/* Channel/Group ID Input (Owner Only) */}
|
| 213 |
{user?.role === 'OWNER' && (
|
| 214 |
<div className="pt-4 border-t border-white/10">
|
| 215 |
<div className="flex gap-4">
|
| 216 |
<div className="flex-1">
|
| 217 |
+
<label className="block text-sm font-medium text-slate-400 mb-2">ID Группы или Канала (Team Chat)</label>
|
| 218 |
<input
|
| 219 |
type="text"
|
| 220 |
value={channelId}
|
|
|
|
| 225 |
</div>
|
| 226 |
</div>
|
| 227 |
<p className="text-xs text-slate-500 mt-2">
|
| 228 |
+
Общий чат для команды. Бот должен быть администратором группы/канала.
|
| 229 |
</p>
|
| 230 |
</div>
|
| 231 |
)}
|