Skip to content

Commit c95af0f

Browse files
committed
Fixed typo
Signed-off-by: smarcet@gmail.com <smarcet@gmail.com> Change-Id: Ifdf37fe84ccb18632548e113ffafebd4c234f9be
1 parent 885344a commit c95af0f

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

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

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,14 @@
4545
});
4646
@endforeach
4747
48-
var scopes = [];
48+
var scopes = ['openid'];
49+
@if ($client->use_refresh_token)
50+
scopes.push('offline_access');
51+
@endif
4952
@foreach ($scopes as $scope)
53+
@if ( in_array($scope->id, $selected_scopes))
5054
scopes.push('{!!trim($scope->name)!!}');
55+
@endif
5156
@endforeach
5257
5358
$(document).ready(function () {
@@ -61,9 +66,10 @@
6166
6267
$(document).on('click', '.copy-scopes-button', function(e){
6368
// Copy the text inside the text field
64-
navigator.clipboard.writeText(scopes);
69+
70+
navigator.clipboard.writeText(scopes.join(' '));
6571
// Alert the copied text
66-
alert("Copied Scopes: " + scopes);
72+
alert("Copied Scopes: " + scopes.join(' '));
6773
});
6874
});
6975
</script>

0 commit comments

Comments
 (0)