1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-12-12 05:38:55 +09:00

アプリの権限を確認できるように

This commit is contained in:
syuilo 2020-03-29 17:06:36 +09:00
parent d0fff562ea
commit 09e3ddbd57
2 changed files with 7 additions and 0 deletions

View File

@ -27,6 +27,12 @@
<div class="actions"> <div class="actions">
<button class="_button" @click="revoke(token)"><fa :icon="faTrashAlt"/></button> <button class="_button" @click="revoke(token)"><fa :icon="faTrashAlt"/></button>
</div> </div>
<details>
<summary>{{ $t('details') }}</summary>
<ul>
<li v-for="p in token.permission" :key="p">{{ $t(`_permissions.${p}`) }}</li>
</ul>
</details>
</div> </div>
</div> </div>
</template> </template>

View File

@ -38,5 +38,6 @@ export default define(meta, async (ps, user) => {
name: token.name, name: token.name,
createdAt: token.createdAt, createdAt: token.createdAt,
lastUsedAt: token.lastUsedAt, lastUsedAt: token.lastUsedAt,
permission: token.permission,
}))); })));
}); });