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

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,
}))); })));
}); });