Intranet dil desteği devam
This commit is contained in:
parent
265d203b95
commit
f9efd0a145
13 changed files with 1693 additions and 1542 deletions
|
|
@ -137,7 +137,7 @@ public static class LookupQueryValues
|
|||
|
||||
public static string CityValues =
|
||||
$"SELECT " +
|
||||
$"\"Name\" AS \"Key\", " +
|
||||
$"\"Id\" AS \"Key\", " +
|
||||
$"\"Name\" AS \"Name\" " +
|
||||
$"FROM \"{FullNameTable(TableNameEnum.City)}\" " +
|
||||
$"WHERE " +
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ using Volo.Abp.Application.Dtos;
|
|||
|
||||
namespace Erp.Platform.Public;
|
||||
|
||||
public class CityDto : AuditedEntityDto<Guid>
|
||||
public class CityDto : AuditedEntityDto<string>
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public string PlateCode { get; set; }
|
||||
|
|
|
|||
|
|
@ -1,10 +1,9 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Generic;
|
||||
using Volo.Abp.Application.Dtos;
|
||||
|
||||
namespace Erp.Platform.Public;
|
||||
|
||||
public class CountryDto : AuditedEntityDto<Guid>
|
||||
public class CountryDto : AuditedEntityDto<string>
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public string GroupName { get; set; }
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -153,7 +153,7 @@ public class HostDataSeeder : IDataSeedContributor, ITransientDependency
|
|||
private readonly IRepository<Currency, string> _currencyRepository;
|
||||
private readonly IRepository<CountryGroup, string> _countryGroupRepository;
|
||||
private readonly IRepository<Country, string> _countryRepository;
|
||||
private readonly IRepository<City, Guid> _cityRepository;
|
||||
private readonly IRepository<City, string> _cityRepository;
|
||||
private readonly IRepository<District, Guid> _districtRepository;
|
||||
private readonly IRepository<ContactTag, Guid> _contactTagRepository;
|
||||
private readonly IRepository<ContactTitle, Guid> _contactTitleRepository;
|
||||
|
|
@ -173,7 +173,7 @@ public class HostDataSeeder : IDataSeedContributor, ITransientDependency
|
|||
IRepository<Currency, string> currencyRepository,
|
||||
IRepository<CountryGroup, string> countryGroupRepository,
|
||||
IRepository<Country, string> countryRepository,
|
||||
IRepository<City, Guid> cityRepository,
|
||||
IRepository<City, string> cityRepository,
|
||||
IRepository<District, Guid> districtRepository,
|
||||
IRepository<ContactTag, Guid> contactTagRepository,
|
||||
IRepository<ContactTitle, Guid> contactTitleRepository,
|
||||
|
|
@ -350,7 +350,7 @@ public class HostDataSeeder : IDataSeedContributor, ITransientDependency
|
|||
if (existingSet.Contains(key)) continue; // duplicate kontrolü
|
||||
|
||||
buffer.Add(new City(
|
||||
Guid.NewGuid(),
|
||||
item.Id,
|
||||
item.Country,
|
||||
item.Name,
|
||||
item.PlateCode
|
||||
|
|
|
|||
|
|
@ -7,13 +7,6 @@
|
|||
"isEnabled": true,
|
||||
"twoLetterIsoLanguageName": "ar"
|
||||
},
|
||||
{
|
||||
"cultureName": "cs",
|
||||
"uiCultureName": "cs",
|
||||
"displayName": "Čeština",
|
||||
"isEnabled": true,
|
||||
"twoLetterIsoLanguageName": "cs"
|
||||
},
|
||||
{
|
||||
"cultureName": "de-DE",
|
||||
"uiCultureName": "de-DE",
|
||||
|
|
@ -12181,6 +12174,162 @@
|
|||
"key": "App.Platform.Intranet.Widgets.Visitors.StatusText.Unknown",
|
||||
"tr": "Bilinmiyor",
|
||||
"en": "Unknown"
|
||||
},
|
||||
{
|
||||
"resourceName": "Platform",
|
||||
"key": "App.Platform.Intranet.SocialWall.CurrentUser",
|
||||
"tr": "Siz",
|
||||
"en": "You"
|
||||
},
|
||||
{
|
||||
"resourceName": "Platform",
|
||||
"key": "App.Platform.Intranet.SocialWall.DeleteConfirm",
|
||||
"tr": "Bu gönderiyi silmek istediğinizden emin misiniz?",
|
||||
"en": "Are you sure you want to delete this post?"
|
||||
},
|
||||
{
|
||||
"resourceName": "Platform",
|
||||
"key": "App.Platform.Intranet.SocialWall.AllPosts",
|
||||
"tr": "Tüm Gönderiler",
|
||||
"en": "All Posts"
|
||||
},
|
||||
{
|
||||
"resourceName": "Platform",
|
||||
"key": "App.Platform.Intranet.SocialWall.MyPosts",
|
||||
"tr": "Gönderilerim",
|
||||
"en": "My Posts"
|
||||
},
|
||||
{
|
||||
"resourceName": "Platform",
|
||||
"key": "App.Platform.Intranet.SocialWall.NoMyPosts",
|
||||
"tr": "Henüz bir gönderi paylaşmadınız.",
|
||||
"en": "You haven't shared any posts yet."
|
||||
},
|
||||
{
|
||||
"resourceName": "Platform",
|
||||
"key": "App.Platform.Intranet.SocialWall.NoPosts",
|
||||
"tr": "Henüz gönderi yok.",
|
||||
"en": "No posts yet."
|
||||
},
|
||||
{
|
||||
"resourceName": "Platform",
|
||||
"key": "App.Platform.Intranet.SocialWall.CreatePost.Placeholder",
|
||||
"tr": "Lütfen bir gönderi yazın...",
|
||||
"en": "Please write a post..."
|
||||
},
|
||||
{
|
||||
"resourceName": "Platform",
|
||||
"key": "App.Platform.Intranet.SocialWall.CreatePost.MediaTitle",
|
||||
"tr": "Medyalar",
|
||||
"en": "Media"
|
||||
},
|
||||
{
|
||||
"resourceName": "Platform",
|
||||
"key": "App.Platform.Intranet.SocialWall.CreatePost.RemoveAllMediaTitle",
|
||||
"tr": "Tüm medyaları kaldır",
|
||||
"en": "Remove all media"
|
||||
},
|
||||
{
|
||||
"resourceName": "Platform",
|
||||
"key": "App.Platform.Intranet.SocialWall.CreatePost.Cancel",
|
||||
"tr": "Vazgeç",
|
||||
"en": "Cancel"
|
||||
},
|
||||
{
|
||||
"resourceName": "Platform",
|
||||
"key": "App.Platform.Intranet.SocialWall.CreatePost.Location",
|
||||
"tr": "Konum",
|
||||
"en": "Location"
|
||||
},
|
||||
{
|
||||
"resourceName": "Platform",
|
||||
"key": "App.Platform.Intranet.SocialWall.CreatePost.RemoveLocationTitle",
|
||||
"tr": "Konumu kaldır",
|
||||
"en": "Remove location"
|
||||
},
|
||||
{
|
||||
"resourceName": "Platform",
|
||||
"key": "App.Platform.Intranet.SocialWall.CreatePost.Poll",
|
||||
"tr": "Anket",
|
||||
"en": "Poll"
|
||||
},
|
||||
{
|
||||
"resourceName": "Platform",
|
||||
"key": "App.Platform.Intranet.SocialWall.CreatePost.RemovePollTitle",
|
||||
"tr": "Anketi kaldır",
|
||||
"en": "Remove poll"
|
||||
},
|
||||
{
|
||||
"resourceName": "Platform",
|
||||
"key": "App.Platform.Intranet.SocialWall.CreatePost.PollQuestionPlaceholder",
|
||||
"tr": "Soru",
|
||||
"en": "Question"
|
||||
},
|
||||
{
|
||||
"resourceName": "Platform",
|
||||
"key": "App.Platform.Intranet.SocialWall.CreatePost.PollOptionPlaceholder",
|
||||
"tr": "Seçenek",
|
||||
"en": "Option"
|
||||
},
|
||||
{
|
||||
"resourceName": "Platform",
|
||||
"key": "App.Platform.Intranet.SocialWall.CreatePost.AddOption",
|
||||
"tr": "Seçenek Ekle",
|
||||
"en": "Add Option"
|
||||
},
|
||||
{
|
||||
"resourceName": "Platform",
|
||||
"key": "App.Platform.Intranet.SocialWall.CreatePost.EditMediaTitle",
|
||||
"tr": "Medyaları düzenle",
|
||||
"en": "Edit media"
|
||||
},
|
||||
{
|
||||
"resourceName": "Platform",
|
||||
"key": "App.Platform.Intranet.SocialWall.CreatePost.AddMediaTitle",
|
||||
"tr": "Medya ekle",
|
||||
"en": "Add media"
|
||||
},
|
||||
{
|
||||
"resourceName": "Platform",
|
||||
"key": "App.Platform.Intranet.SocialWall.CreatePost.AddPollTitle",
|
||||
"tr": "Anket ekle",
|
||||
"en": "Add poll"
|
||||
},
|
||||
{
|
||||
"resourceName": "Platform",
|
||||
"key": "App.Platform.Intranet.SocialWall.CreatePost.AddEmojiTitle",
|
||||
"tr": "Emoji ekle",
|
||||
"en": "Add emoji"
|
||||
},
|
||||
{
|
||||
"resourceName": "Platform",
|
||||
"key": "App.Platform.Intranet.SocialWall.CreatePost.EditLocationTitle",
|
||||
"tr": "Konumu değiştir",
|
||||
"en": "Edit location"
|
||||
},
|
||||
{
|
||||
"resourceName": "Platform",
|
||||
"key": "App.Platform.Intranet.SocialWall.CreatePost.AddLocationTitle",
|
||||
"tr": "Konum ekle",
|
||||
"en": "Add location"
|
||||
},
|
||||
{
|
||||
"resourceName": "Platform",
|
||||
"key": "App.Platform.Intranet.SocialWall.CreatePost.Submit",
|
||||
"tr": "Paylaş",
|
||||
"en": "Share"
|
||||
},
|
||||
{
|
||||
"resourceName": "Platform",
|
||||
"key": "App.Platform.Intranet.Dashboard.DesignMode",
|
||||
"tr": "Dizayn Mod",
|
||||
"en": "Design Mode"
|
||||
},
|
||||
{
|
||||
"resourceName": "Platform",
|
||||
"key": "App.Platform.Intranet.Dashboard.Reset",
|
||||
"tr": "Sıfırla",
|
||||
"en": "Reset"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1896,7 +1896,7 @@ public class ListFormSeeder_Hr : IDataSeedContributor, ITransientDependency
|
|||
CultureName = LanguageCodes.En,
|
||||
SourceDbType = DbType.String,
|
||||
FieldName = "IbanNumber",
|
||||
Width = 100,
|
||||
Width = 250,
|
||||
ListOrderNo = 34,
|
||||
Visible = true,
|
||||
IsActive = true,
|
||||
|
|
|
|||
|
|
@ -1,10 +1,9 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Generic;
|
||||
using Volo.Abp.Domain.Entities.Auditing;
|
||||
|
||||
namespace Erp.Platform.Entities;
|
||||
|
||||
public class City : FullAuditedEntity<Guid>
|
||||
public class City : FullAuditedEntity<string>
|
||||
{
|
||||
public string Country { get; set; }
|
||||
public string Name { get; set; }
|
||||
|
|
@ -14,7 +13,7 @@ public class City : FullAuditedEntity<Guid>
|
|||
|
||||
protected City() { }
|
||||
|
||||
public City(Guid id, string country, string name, string plateCode)
|
||||
public City(string id, string country, string name, string plateCode)
|
||||
: base(id)
|
||||
{
|
||||
Country = country;
|
||||
|
|
|
|||
|
|
@ -121,7 +121,7 @@ function RolesPermission({
|
|||
|
||||
setTimeout(async () => {
|
||||
getConfig(true)
|
||||
}, 3000)
|
||||
}, 6000)
|
||||
}
|
||||
|
||||
function getPermissionsWithGroupName(groups: PermissionGroupDto[]): PermissionWithGroupName[] {
|
||||
|
|
|
|||
|
|
@ -104,7 +104,7 @@ function UsersPermission({
|
|||
|
||||
setTimeout(async () => {
|
||||
getConfig(true)
|
||||
}, 3000)
|
||||
}, 6000)
|
||||
}
|
||||
|
||||
function getPermissionsWithGroupName(groups: PermissionGroupDto[]): PermissionWithGroupName[] {
|
||||
|
|
|
|||
|
|
@ -491,7 +491,7 @@ const IntranetDashboard: React.FC = () => {
|
|||
htmlFor="design-mode-toggle"
|
||||
className="text-sm font-medium text-gray-700 dark:text-gray-300 cursor-pointer"
|
||||
>
|
||||
🎨 Dizayn Modu
|
||||
🎨 {translate('::App.Platform.Intranet.Dashboard.DesignMode')}
|
||||
</label>
|
||||
<button
|
||||
id="design-mode-toggle"
|
||||
|
|
@ -522,7 +522,7 @@ const IntranetDashboard: React.FC = () => {
|
|||
className="text-sm text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200 transition-colors flex items-center gap-1"
|
||||
title="Widget düzenini varsayılana döndür"
|
||||
>
|
||||
🔄 Sıfırla
|
||||
🔄 {translate('::App.Platform.Intranet.Dashboard.Reset')}
|
||||
</button>
|
||||
)}
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -187,7 +187,7 @@ const CreatePost: React.FC<CreatePostProps> = ({ onCreatePost }) => {
|
|||
>
|
||||
<div className="flex items-center justify-between mb-2">
|
||||
<h4 className="text-sm font-medium text-gray-700 dark:text-gray-300">
|
||||
Medyalar ({mediaItems.length})
|
||||
{translate('::App.Platform.Intranet.SocialWall.CreatePost.MediaTitle')} ({mediaItems.length})
|
||||
</h4>
|
||||
<button
|
||||
type="button"
|
||||
|
|
@ -195,9 +195,9 @@ const CreatePost: React.FC<CreatePostProps> = ({ onCreatePost }) => {
|
|||
clearMedia()
|
||||
}}
|
||||
className="text-sm text-red-600 hover:text-red-700 font-medium"
|
||||
title="Tüm medyaları kaldır"
|
||||
title={translate('::App.Platform.Intranet.SocialWall.CreatePost.RemoveAllMediaTitle')}
|
||||
>
|
||||
Vazgeç
|
||||
{translate('::App.Platform.Intranet.SocialWall.CreatePost.Cancel')}
|
||||
</button>
|
||||
</div>
|
||||
<div className="grid grid-cols-4 gap-2">
|
||||
|
|
@ -250,14 +250,14 @@ const CreatePost: React.FC<CreatePostProps> = ({ onCreatePost }) => {
|
|||
className="mb-4"
|
||||
>
|
||||
<div className="flex items-center justify-between mb-2">
|
||||
<h4 className="text-sm font-medium text-gray-700 dark:text-gray-300">Konum</h4>
|
||||
<h4 className="text-sm font-medium text-gray-700 dark:text-gray-300">{translate('::App.Platform.Intranet.SocialWall.CreatePost.Location')}</h4>
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => setLocation(null)}
|
||||
className="text-sm text-red-600 hover:text-red-700 font-medium"
|
||||
title="Konumu kaldır"
|
||||
title={translate('::App.Platform.Intranet.SocialWall.CreatePost.RemoveLocationTitle')}
|
||||
>
|
||||
Vazgeç
|
||||
{translate('::App.Platform.Intranet.SocialWall.CreatePost.Cancel')}
|
||||
</button>
|
||||
</div>
|
||||
<div className="p-3 border border-gray-300 dark:border-gray-600 rounded-lg bg-gray-50 dark:bg-gray-700">
|
||||
|
|
@ -284,23 +284,23 @@ const CreatePost: React.FC<CreatePostProps> = ({ onCreatePost }) => {
|
|||
className="mb-4"
|
||||
>
|
||||
<div className="flex items-center justify-between mb-2">
|
||||
<h4 className="text-sm font-medium text-gray-700 dark:text-gray-300">Anket</h4>
|
||||
<h4 className="text-sm font-medium text-gray-700 dark:text-gray-300">{translate('::App.Platform.Intranet.SocialWall.CreatePost.Poll')}</h4>
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => {
|
||||
clearMedia()
|
||||
}}
|
||||
className="text-sm text-red-600 hover:text-red-700 font-medium"
|
||||
title="Anketi kaldır"
|
||||
title={translate('::App.Platform.Intranet.SocialWall.CreatePost.RemovePollTitle')}
|
||||
>
|
||||
Vazgeç
|
||||
{translate('::App.Platform.Intranet.SocialWall.CreatePost.Cancel')}
|
||||
</button>
|
||||
</div>
|
||||
<input
|
||||
type="text"
|
||||
value={pollQuestion}
|
||||
onChange={(e) => setPollQuestion(e.target.value)}
|
||||
placeholder="Soru"
|
||||
placeholder={translate('::App.Platform.Intranet.SocialWall.CreatePost.PollQuestionPlaceholder')}
|
||||
className="w-full px-4 py-2 mb-3 border border-gray-300 dark:border-gray-600 rounded-lg bg-white dark:bg-gray-700 text-gray-900 dark:text-gray-100 focus:outline-none focus:ring-2 focus:ring-blue-500"
|
||||
/>
|
||||
<div className="space-y-2">
|
||||
|
|
@ -310,7 +310,7 @@ const CreatePost: React.FC<CreatePostProps> = ({ onCreatePost }) => {
|
|||
type="text"
|
||||
value={option}
|
||||
onChange={(e) => updatePollOption(index, e.target.value)}
|
||||
placeholder={`Seçenek ${index + 1}`}
|
||||
placeholder={translate('::App.Platform.Intranet.SocialWall.CreatePost.PollOptionPlaceholder')}
|
||||
className="flex-1 px-4 py-2 border border-gray-300 dark:border-gray-600 rounded-lg bg-white dark:bg-gray-700 text-gray-900 dark:text-gray-100 focus:outline-none focus:ring-2 focus:ring-blue-500"
|
||||
/>
|
||||
{pollOptions.length > 2 && (
|
||||
|
|
@ -331,7 +331,7 @@ const CreatePost: React.FC<CreatePostProps> = ({ onCreatePost }) => {
|
|||
onClick={addPollOption}
|
||||
className="mt-2 text-sm text-blue-600 hover:text-blue-700 font-medium"
|
||||
>
|
||||
+ Seçenek Ekle
|
||||
+ {translate('::App.Platform.Intranet.SocialWall.CreatePost.AddOption')}
|
||||
</button>
|
||||
)}
|
||||
</motion.div>
|
||||
|
|
@ -367,7 +367,7 @@ const CreatePost: React.FC<CreatePostProps> = ({ onCreatePost }) => {
|
|||
? 'bg-blue-100 text-blue-600 dark:bg-blue-900 dark:text-blue-400'
|
||||
: 'text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-700'
|
||||
)}
|
||||
title={mediaType === 'media' ? 'Medyaları düzenle' : 'Medya ekle'}
|
||||
title={mediaType === 'media' ? translate('::App.Platform.Intranet.SocialWall.CreatePost.EditMediaTitle') : translate('::App.Platform.Intranet.SocialWall.CreatePost.AddMediaTitle')}
|
||||
>
|
||||
<FaImages className="w-5 h-5" />
|
||||
{mediaType === 'media' && mediaItems.length > 0 && (
|
||||
|
|
@ -391,7 +391,7 @@ const CreatePost: React.FC<CreatePostProps> = ({ onCreatePost }) => {
|
|||
? 'bg-blue-100 text-blue-600 dark:bg-blue-900 dark:text-blue-400'
|
||||
: 'text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-700'
|
||||
)}
|
||||
title={mediaType === 'poll' ? 'Anketi kaldır' : 'Anket ekle'}
|
||||
title={mediaType === 'poll' ? translate('::App.Platform.Intranet.SocialWall.CreatePost.RemovePollTitle') : translate('::App.Platform.Intranet.SocialWall.CreatePost.AddPollTitle')}
|
||||
>
|
||||
<FaChartBar className="w-5 h-5" />
|
||||
</button>
|
||||
|
|
@ -399,7 +399,7 @@ const CreatePost: React.FC<CreatePostProps> = ({ onCreatePost }) => {
|
|||
type="button"
|
||||
onClick={() => setShowEmojiPicker(!showEmojiPicker)}
|
||||
className="p-2 text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-full transition-colors"
|
||||
title="Emoji ekle"
|
||||
title={translate('::App.Platform.Intranet.SocialWall.CreatePost.AddEmojiTitle')}
|
||||
>
|
||||
<FaSmile className="w-5 h-5" />
|
||||
</button>
|
||||
|
|
@ -412,7 +412,7 @@ const CreatePost: React.FC<CreatePostProps> = ({ onCreatePost }) => {
|
|||
? 'bg-blue-100 text-blue-600 dark:bg-blue-900 dark:text-blue-400'
|
||||
: 'text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-700'
|
||||
)}
|
||||
title={location ? 'Konumu değiştir' : 'Konum ekle'}
|
||||
title={location ? translate('::App.Platform.Intranet.SocialWall.CreatePost.EditLocationTitle') : translate('::App.Platform.Intranet.SocialWall.CreatePost.AddLocationTitle')}
|
||||
>
|
||||
<FaMapMarkerAlt className="w-5 h-5" />
|
||||
</button>
|
||||
|
|
@ -432,7 +432,7 @@ const CreatePost: React.FC<CreatePostProps> = ({ onCreatePost }) => {
|
|||
disabled={!content.trim() && mediaItems.length === 0 && !mediaType}
|
||||
className="px-6 py-2 bg-blue-600 text-white font-medium rounded-full hover:bg-blue-700 disabled:bg-gray-400 disabled:cursor-not-allowed transition-colors"
|
||||
>
|
||||
Paylaş
|
||||
{translate('::App.Platform.Intranet.SocialWall.CreatePost.Submit')}
|
||||
</button>
|
||||
</motion.div>
|
||||
)}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
import React, { useState } from 'react'
|
||||
import { useLocalization } from '@/utils/hooks/useLocalization'
|
||||
import { AnimatePresence } from 'framer-motion'
|
||||
import PostItem from './PostItem'
|
||||
import CreatePost from './CreatePost'
|
||||
|
|
@ -8,9 +9,10 @@ import { EmployeeDto, SocialMediaDto, SocialPostDto } from '@/proxy/intranet/mod
|
|||
const SocialWall: React.FC<{ posts: SocialPostDto[] }> = ({ posts }) => {
|
||||
// const [posts, setPosts] = useState<SocialPost[]>(mockSocialPosts)
|
||||
const [filter, setFilter] = useState<'all' | 'mine'>('all')
|
||||
const { translate } = useLocalization()
|
||||
|
||||
// Ali Öztürk'ü "Siz" kullanıcısı olarak kullan
|
||||
const currentUserAuthor: EmployeeDto = { ...mockEmployees[0], name: 'Siz' }
|
||||
const currentUserAuthor: EmployeeDto = { ...mockEmployees[0], name: translate('::App.Platform.Intranet.SocialWall.CurrentUser') }
|
||||
|
||||
const handleCreatePost = (postData: {
|
||||
content: string
|
||||
|
|
@ -118,7 +120,7 @@ const SocialWall: React.FC<{ posts: SocialPostDto[] }> = ({ posts }) => {
|
|||
}
|
||||
|
||||
const handleDelete = (postId: string) => {
|
||||
if (window.confirm('Bu gönderiyi silmek istediğinizden emin misiniz?')) {
|
||||
if (window.confirm(translate('::App.Platform.Intranet.SocialWall.DeleteConfirm'))) {
|
||||
// setPosts(posts.filter((post) => post.id !== postId))
|
||||
}
|
||||
}
|
||||
|
|
@ -162,7 +164,7 @@ const SocialWall: React.FC<{ posts: SocialPostDto[] }> = ({ posts }) => {
|
|||
: 'border-transparent text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-200'
|
||||
}`}
|
||||
>
|
||||
Tüm Gönderiler
|
||||
{translate('::App.Platform.Intranet.SocialWall.AllPosts')}
|
||||
</button>
|
||||
<button
|
||||
onClick={() => setFilter('mine')}
|
||||
|
|
@ -172,7 +174,7 @@ const SocialWall: React.FC<{ posts: SocialPostDto[] }> = ({ posts }) => {
|
|||
: 'border-transparent text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-200'
|
||||
}`}
|
||||
>
|
||||
Gönderilerim
|
||||
{translate('::App.Platform.Intranet.SocialWall.MyPosts')}
|
||||
</button>
|
||||
</div>
|
||||
|
||||
|
|
@ -195,7 +197,9 @@ const SocialWall: React.FC<{ posts: SocialPostDto[] }> = ({ posts }) => {
|
|||
) : (
|
||||
<div className="text-center py-12">
|
||||
<p className="text-gray-500 dark:text-gray-400 text-lg">
|
||||
{filter === 'mine' ? 'Henüz bir gönderi paylaşmadınız.' : 'Henüz gönderi yok.'}
|
||||
{filter === 'mine'
|
||||
? translate('::App.Platform.Intranet.SocialWall.NoMyPosts')
|
||||
: translate('::App.Platform.Intranet.SocialWall.NoPosts')}
|
||||
</p>
|
||||
</div>
|
||||
)}
|
||||
|
|
|
|||
Loading…
Reference in a new issue