Skip to content

Commit

Permalink
Update roles.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
syuilo committed Sep 1, 2024
1 parent 42aada4 commit 1488b67
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/frontend/src/pages/admin/roles.vue
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ SPDX-License-Identifier: AGPL-3.0-only
</template>

<script lang="ts" setup>
import { computed, reactive, ref } from 'vue';
import { computed, inject, reactive, ref } from 'vue';
import XHeader from './_header_.vue';
import MkInput from '@/components/MkInput.vue';
import MkFolder from '@/components/MkFolder.vue';
Expand All @@ -251,19 +251,21 @@ import * as os from '@/os.js';
import { misskeyApi } from '@/scripts/misskey-api.js';
import { i18n } from '@/i18n.js';
import { definePageMetadata } from '@/scripts/page-metadata.js';
import { instance, fetchServerMetadata } from '@/server-metadata.js';
import { fetchServerMetadata } from '@/server-metadata.js';
import MkFoldableSection from '@/components/MkFoldableSection.vue';
import { ROLE_POLICIES } from '@/const.js';
import { useRouter } from '@/router/supplier.js';
const serverMetadata = inject('serverMetadata');
const router = useRouter();
const baseRoleQ = ref('');
const roles = await misskeyApi('admin/roles/list');
const policies = reactive<Record<typeof ROLE_POLICIES[number], any>>({});
for (const ROLE_POLICY of ROLE_POLICIES) {
policies[ROLE_POLICY] = instance.policies[ROLE_POLICY];
policies[ROLE_POLICY] = serverMetadata.policies[ROLE_POLICY];
}
function matchQuery(keywords: string[]): boolean {
Expand Down

0 comments on commit 1488b67

Please sign in to comment.