hide shared access settings when authenticating a plugin
This commit is contained in:
parent
70b85e5215
commit
1e10be3f11
2 changed files with 3 additions and 0 deletions
|
|
@ -110,11 +110,13 @@ const props = withDefaults(defineProps<{
|
|||
information?: string | null;
|
||||
initialName?: string | null;
|
||||
initialPermissions?: (typeof Misskey.permissions)[number][] | null;
|
||||
enableSharedAccess?: boolean;
|
||||
}>(), {
|
||||
title: null,
|
||||
information: null,
|
||||
initialName: null,
|
||||
initialPermissions: null,
|
||||
enableSharedAccess: true,
|
||||
});
|
||||
|
||||
const emit = defineEmits<{
|
||||
|
|
|
|||
|
|
@ -107,6 +107,7 @@ export async function authorizePlugin(plugin: Plugin) {
|
|||
information: i18n.ts.pluginTokenRequestedDescription,
|
||||
initialName: plugin.name,
|
||||
initialPermissions: plugin.permissions,
|
||||
enableSharedAccess: false,
|
||||
}, {
|
||||
done: async result => {
|
||||
const { name, permissions, rank } = result;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue