mirror of
https://github.com/nextcloud/server.git
synced 2026-03-30 22:26:41 -04:00
49 lines
945 B
Vue
49 lines
945 B
Vue
<!--
|
|
- SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
|
|
- SPDX-License-Identifier: AGPL-3.0-or-later
|
|
-->
|
|
|
|
<template>
|
|
<li class="webauthn-device">
|
|
<span class="icon-webauthn-device" />
|
|
{{ name || t('settings', 'Unnamed device') }}
|
|
<NcActions :force-menu="true">
|
|
<NcActionButton icon="icon-delete" @click="$emit('delete')">
|
|
{{ t('settings', 'Delete') }}
|
|
</NcActionButton>
|
|
</NcActions>
|
|
</li>
|
|
</template>
|
|
|
|
<script>
|
|
import NcActions from '@nextcloud/vue/components/NcActions'
|
|
import NcActionButton from '@nextcloud/vue/components/NcActionButton'
|
|
|
|
export default {
|
|
name: 'Device',
|
|
components: {
|
|
NcActionButton,
|
|
NcActions,
|
|
},
|
|
props: {
|
|
name: {
|
|
type: String,
|
|
required: true,
|
|
},
|
|
},
|
|
}
|
|
</script>
|
|
|
|
<style scoped>
|
|
.webauthn-device {
|
|
line-height: 300%;
|
|
display: flex;
|
|
}
|
|
|
|
.icon-webauthn-device {
|
|
display: inline-block;
|
|
background-size: 100%;
|
|
padding: 3px;
|
|
margin: 3px;
|
|
}
|
|
</style>
|