Version 1.1 initial commit
This commit is contained in:
@@ -93,10 +93,10 @@ export function UserScopeModal({
|
||||
<DialogContent className="max-w-md" dir="rtl">
|
||||
<DialogHeader className="text-center" dir="rtl">
|
||||
<DialogTitle className="text-center" dir="rtl">
|
||||
Update assignment for {user.name}
|
||||
שיוך מחדש למשתמש {user.name}
|
||||
</DialogTitle>
|
||||
<DialogDescription className="text-center" dir="rtl">
|
||||
Choose the field, department, and team for this user.
|
||||
יש לבחור תחום, מסגרת וצוות.
|
||||
</DialogDescription>
|
||||
</DialogHeader>
|
||||
|
||||
@@ -104,7 +104,7 @@ export function UserScopeModal({
|
||||
<div className="space-y-2">
|
||||
<Select value={field} onValueChange={setField}>
|
||||
<SelectTrigger dir="rtl">
|
||||
<SelectValue placeholder="Select field" />
|
||||
<SelectValue placeholder="בחרו תחום" />
|
||||
</SelectTrigger>
|
||||
<SelectContent dir="rtl">
|
||||
{fields.map((item) => (
|
||||
@@ -119,7 +119,7 @@ export function UserScopeModal({
|
||||
<div className="space-y-2">
|
||||
<Select value={department} onValueChange={setDepartment}>
|
||||
<SelectTrigger dir="rtl">
|
||||
<SelectValue placeholder="Select department" />
|
||||
<SelectValue placeholder="בחרו מסגרת" />
|
||||
</SelectTrigger>
|
||||
<SelectContent dir="rtl">
|
||||
{availableDepartments.map((item) => (
|
||||
@@ -134,7 +134,7 @@ export function UserScopeModal({
|
||||
<div className="space-y-2">
|
||||
<Select value={team} onValueChange={setTeam}>
|
||||
<SelectTrigger dir="rtl">
|
||||
<SelectValue placeholder="Select team" />
|
||||
<SelectValue placeholder="בחרו צוות" />
|
||||
</SelectTrigger>
|
||||
<SelectContent dir="rtl">
|
||||
{availableTeams.map((item) => (
|
||||
@@ -148,14 +148,14 @@ export function UserScopeModal({
|
||||
|
||||
<div className="flex gap-2">
|
||||
<Button variant="outline" onClick={onClose} className="w-full">
|
||||
Cancel
|
||||
ביטול
|
||||
</Button>
|
||||
<Button
|
||||
onClick={handleSave}
|
||||
className="w-full"
|
||||
disabled={isSaving || !field || !department || !team}
|
||||
>
|
||||
{isSaving ? "Saving..." : "Save"}
|
||||
{isSaving ? "שומר..." : "שמירה"}
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user