0
0

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

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">
<button class="_button" @click="revoke(token)"><fa :icon="faTrashAlt"/></button>
</div>
<details>
<summary>{{ $t('details') }}</summary>
<ul>
<li v-for="p in token.permission" :key="p">{{ $t(`_permissions.${p}`) }}</li>
</ul>
</details>
</div>
</div>
</template>

View File

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