Skip to content

Commit cb8b257

Browse files
committed
Fixed typo
Signed-off-by: [email protected] <[email protected]> Change-Id: Ifdf37fe84ccb18632548e113ffafebd4c234f9be
1 parent 885344a commit cb8b257

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

resources/views/oauth2/profile/edit-client.blade.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@
4747
4848
var scopes = [];
4949
@foreach ($scopes as $scope)
50+
@if ( in_array($scope->id, $selected_scopes))
5051
scopes.push('{!!trim($scope->name)!!}');
52+
@endif
5153
@endforeach
5254
5355
$(document).ready(function () {
@@ -61,9 +63,10 @@
6163
6264
$(document).on('click', '.copy-scopes-button', function(e){
6365
// Copy the text inside the text field
64-
navigator.clipboard.writeText(scopes);
66+
67+
navigator.clipboard.writeText(scopes.join(' '));
6568
// Alert the copied text
66-
alert("Copied Scopes: " + scopes);
69+
alert("Copied Scopes: " + scopes.join(' '));
6770
});
6871
});
6972
</script>

0 commit comments

Comments
 (0)