[UI] Fix scoped-access-token
- Regression of #4571 - Refactor to not use the component API of Vue. The root cause is still unknown.
This commit is contained in:
parent
ea1a0ebbc3
commit
aa5163d5c4
2 changed files with 13 additions and 12 deletions
|
@ -78,10 +78,13 @@ export default sfc;
|
|||
* Initialize category toggle sections
|
||||
*/
|
||||
export function initScopedAccessTokenCategories() {
|
||||
for (const el of document.getElementsByClassName('scoped-access-token-mount')) {
|
||||
createApp({})
|
||||
.component('scoped-access-token-selector', sfc)
|
||||
.mount(el);
|
||||
for (const el of document.getElementsByClassName('scoped-access-token')) {
|
||||
createApp(sfc, {
|
||||
isAdmin: el.getAttribute('data-is-admin') === 'true',
|
||||
noAccessLabel: el.getAttribute('data-no-access-label'),
|
||||
readLabel: el.getAttribute('data-read-label'),
|
||||
writeLabel: el.getAttribute('data-write-label'),
|
||||
}).mount(el);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue