your commit message
This commit is contained in:
0
.turbo/daemon/53b0054db79f7114-turbo.log.2026-04-12
Normal file
0
.turbo/daemon/53b0054db79f7114-turbo.log.2026-04-12
Normal file
2213
apps/Backend/backups/dental_backup_user1_1775952000048.sql
Normal file
2213
apps/Backend/backups/dental_backup_user1_1775952000048.sql
Normal file
File diff suppressed because one or more lines are too long
2213
apps/Backend/backups/dental_backup_user2_1775952000270.sql
Normal file
2213
apps/Backend/backups/dental_backup_user2_1775952000270.sql
Normal file
File diff suppressed because one or more lines are too long
2213
apps/Backend/backups/dental_backup_user3_1775952000425.sql
Normal file
2213
apps/Backend/backups/dental_backup_user3_1775952000425.sql
Normal file
File diff suppressed because one or more lines are too long
2213
apps/Backend/backups/dental_backup_user4_1775952000559.sql
Normal file
2213
apps/Backend/backups/dental_backup_user4_1775952000559.sql
Normal file
File diff suppressed because one or more lines are too long
@@ -99,7 +99,7 @@ export function CredentialTable() {
|
|||||||
setModalOpen(true);
|
setModalOpen(true);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Plus className="mr-2 h-4 w-4" /> Add Credential
|
<Plus className="mr-2 h-4 w-4" /> Add Credentials
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ export function NpiProviderTable() {
|
|||||||
setModalOpen(true);
|
setModalOpen(true);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Plus className="mr-2 h-4 w-4" /> Add NPI Provider
|
<Plus className="mr-2 h-4 w-4" /> Add NPI Providers
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ export function StaffTable({
|
|||||||
onClick={onAdd}
|
onClick={onAdd}
|
||||||
className="px-4 py-2 bg-teal-600 text-white rounded hover:bg-teal-700"
|
className="px-4 py-2 bg-teal-600 text-white rounded hover:bg-teal-700"
|
||||||
>
|
>
|
||||||
Add New Staff
|
Add New Staffs
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -395,7 +395,7 @@ export default function SettingsPage() {
|
|||||||
addUserMutation.mutate({ username: newUsername.trim(), password: newPassword.trim() });
|
addUserMutation.mutate({ username: newUsername.trim(), password: newPassword.trim() });
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<h4 className="text-sm font-semibold text-gray-700">Add New User</h4>
|
<h4 className="text-sm font-semibold text-gray-700">Add New Users</h4>
|
||||||
<div>
|
<div>
|
||||||
<label className="block text-sm font-medium">Username</label>
|
<label className="block text-sm font-medium">Username</label>
|
||||||
<input
|
<input
|
||||||
@@ -423,7 +423,7 @@ export default function SettingsPage() {
|
|||||||
className="bg-teal-600 text-white px-4 py-2 rounded hover:bg-teal-700"
|
className="bg-teal-600 text-white px-4 py-2 rounded hover:bg-teal-700"
|
||||||
disabled={addUserMutation.isPending}
|
disabled={addUserMutation.isPending}
|
||||||
>
|
>
|
||||||
{addUserMutation.isPending ? "Adding..." : "Add User"}
|
{addUserMutation.isPending ? "Adding..." : "Add"}
|
||||||
</button>
|
</button>
|
||||||
</form>
|
</form>
|
||||||
</CardContent>
|
</CardContent>
|
||||||
@@ -443,7 +443,7 @@ export default function SettingsPage() {
|
|||||||
formData.get("password")?.toString().trim() || undefined;
|
formData.get("password")?.toString().trim() || undefined;
|
||||||
|
|
||||||
updateUserMutate.mutate({
|
updateUserMutate.mutate({
|
||||||
username: usernameUser?.trim() || undefined,
|
...(isAdmin ? {} : { username: usernameUser?.trim() || undefined }),
|
||||||
password: password || undefined,
|
password: password || undefined,
|
||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
@@ -455,8 +455,12 @@ export default function SettingsPage() {
|
|||||||
name="username"
|
name="username"
|
||||||
value={usernameUser}
|
value={usernameUser}
|
||||||
onChange={(e) => setUsernameUser(e.target.value)}
|
onChange={(e) => setUsernameUser(e.target.value)}
|
||||||
className="mt-1 p-2 border rounded w-full"
|
className="mt-1 p-2 border rounded w-full disabled:bg-gray-100 disabled:cursor-not-allowed disabled:text-gray-500"
|
||||||
|
disabled={isAdmin}
|
||||||
/>
|
/>
|
||||||
|
{isAdmin && (
|
||||||
|
<p className="text-xs text-gray-500 mt-1">Admin username cannot be changed.</p>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
Reference in New Issue
Block a user