From a4aec1a2da21ec2127820f83b3f3915d9e4156e8 Mon Sep 17 00:00:00 2001 From: Rotimi Best Date: Mon, 18 Oct 2021 19:42:25 +0300 Subject: [PATCH] CLASSROOMIO-T-27: Hide editing and saving for students --- src/routes/courses/[id]/people.svelte | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/src/routes/courses/[id]/people.svelte b/src/routes/courses/[id]/people.svelte index 84ca8a01..b0041971 100644 --- a/src/routes/courses/[id]/people.svelte +++ b/src/routes/courses/[id]/people.svelte @@ -162,16 +162,20 @@ {:else}

{person.assigned_student_id || '-'}

-
- handleEditStudentIdMode(person.id)}> - - - copyToClipboard(person.assigned_student_id)} - > - - -
+ {#if !isStudent} +
+ handleEditStudentIdMode(person.id)} + > + + + copyToClipboard(person.assigned_student_id)} + > + + +
+ {/if}
{/if}