-
-
-
Notificações
- {#if count > 0}
-
- Marcar todas como lidas
-
- {/if}
-
-
-
-
- {#if notificacoes.length > 0}
- {#each notificacoes.slice(0, 10) as notificacao (notificacao._id)}
-
handleClickNotificacao(notificacao._id)}
- >
-
-
-
- {#if notificacao.tipo === "nova_mensagem"}
-
-
-
- {:else if notificacao.tipo === "mencao"}
-
-
-
- {:else}
-
-
-
- {/if}
-
-
-
-
-
- {notificacao.titulo}
-
-
- {notificacao.descricao}
-
-
- {formatarTempo(notificacao.criadaEm)}
-
-
-
-
- {#if !notificacao.lida}
-
- {/if}
-
-
- {/each}
- {/if}
-
-
- {#if notificacoesFerias.length > 0}
- {#if notificacoes.length > 0}
-
Férias
- {/if}
- {#each notificacoesFerias.slice(0, 5) as notificacao (notificacao._id)}
-
handleClickNotificacaoFerias(notificacao._id)}
- >
-
-
-
-
-
-
-
- {notificacao.mensagem}
-
-
- {formatarTempo(notificacao._creationTime)}
-
-
-
-
-
-
-
- {/each}
- {/if}
-
-
- {#if notificacoesAusencias.length > 0}
- {#if notificacoes.length > 0 || notificacoesFerias.length > 0}
-
Ausências
- {/if}
- {#each notificacoesAusencias.slice(0, 5) as notificacao (notificacao._id)}
-
handleClickNotificacaoAusencias(notificacao._id)}
- >
-
-
-
-
-
-
-
- {notificacao.mensagem}
-
-
- {formatarTempo(notificacao._creationTime)}
-
-
-
-
-
-
-
- {/each}
- {/if}
-
-
- {#if notificacoes.length === 0 && notificacoesFerias.length === 0 && notificacoesAusencias.length === 0}
-
-
-
-
-
Nenhuma notificação
-
- {/if}
-
-