Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
dtd
/
civitas.ui
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit eae58c04
authored
Apr 16, 2025
by
Nabiilah Putri Safa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hide log absen for mahasiswa
1 parent
ddcad912
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
pages/[tab].vue
pages/[tab].vue
View file @
eae58c0
...
...
@@ -47,8 +47,13 @@ const tabs = [
// Filter tab berdasarkan civitas
const
filteredTabs
=
computed
(()
=>
tabs
.
filter
(
tab
=>
!
(
tab
.
tab
===
'riwayat'
&&
keycloakStore
.
civitas
!==
'mahasiswa'
)),
)
tabs
.
filter
(
tab
=>
{
// Jangan sembunyikan "riwayat", hanya "log-absen" untuk mahasiswa
if
(
tab
.
tab
===
'log'
&&
keycloakStore
.
civitas
===
'mahasiswa'
)
return
false
;
return
true
;
})
);
// Fungsi untuk navigasi tab
const
navigateTab
=
(
tab
:
string
)
=>
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment