refactor: streamline Svelte components and enhance user feedback
- Refactored multiple Svelte components, including AprovarAusencias, AprovarFerias, and ErrorModal, to improve code clarity and maintainability. - Updated modal interactions and error handling messages for better user feedback. - Cleaned up component structures and standardized formatting for consistency across the codebase. - Enhanced styling and layout adjustments to align with the new design system.
This commit is contained in:
@@ -97,6 +97,8 @@
|
||||
}
|
||||
|
||||
async function handleCriarGrupo() {
|
||||
console.log('selectedUsers', selectedUsers);
|
||||
|
||||
if (selectedUsers.length < 2) {
|
||||
alert('Selecione pelo menos 2 participantes');
|
||||
return;
|
||||
@@ -323,7 +325,7 @@
|
||||
{usuario.nome}
|
||||
</p>
|
||||
<p class="text-base-content/60 truncate text-sm">
|
||||
{usuario.setor || usuario.email || usuario.matricula || 'Sem informações'}
|
||||
{usuario.email || usuario.matricula || 'Sem informações'}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@@ -334,7 +336,11 @@
|
||||
type="checkbox"
|
||||
class="checkbox checkbox-primary checkbox-lg"
|
||||
checked={isSelected}
|
||||
readonly
|
||||
tabindex="-1"
|
||||
onclick={(e) => {
|
||||
e.stopPropagation();
|
||||
if (!loading) toggleUserSelection(usuario._id);
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
{:else}
|
||||
|
||||
Reference in New Issue
Block a user