|
|
@ -22,12 +22,14 @@ |
|
|
<template> |
|
|
<template> |
|
|
<div v-if="!adding" id="generate-app-token-section" class="row spacing"> |
|
|
<div v-if="!adding" id="generate-app-token-section" class="row spacing"> |
|
|
<!-- Port to TextField component when available --> |
|
|
<!-- Port to TextField component when available --> |
|
|
<input v-model="deviceName" |
|
|
|
|
|
|
|
|
<NcTextField v-model="deviceName" |
|
|
type="text" |
|
|
type="text" |
|
|
:maxlength="120" |
|
|
:maxlength="120" |
|
|
:disabled="loading" |
|
|
:disabled="loading" |
|
|
|
|
|
class="app-name-text-field" |
|
|
|
|
|
:label="t('settings', 'App name')" |
|
|
:placeholder="t('settings', 'App name')" |
|
|
:placeholder="t('settings', 'App name')" |
|
|
@keydown.enter="submit"> |
|
|
|
|
|
|
|
|
@keydown.enter="submit" /> |
|
|
<NcButton :disabled="loading || deviceName.length === 0" |
|
|
<NcButton :disabled="loading || deviceName.length === 0" |
|
|
type="primary" |
|
|
type="primary" |
|
|
@click="submit"> |
|
|
@click="submit"> |
|
|
@ -87,6 +89,7 @@ import '@nextcloud/password-confirmation/dist/style.css' |
|
|
import { showError } from '@nextcloud/dialogs' |
|
|
import { showError } from '@nextcloud/dialogs' |
|
|
import { getRootUrl } from '@nextcloud/router' |
|
|
import { getRootUrl } from '@nextcloud/router' |
|
|
import NcButton from '@nextcloud/vue/dist/Components/NcButton.js' |
|
|
import NcButton from '@nextcloud/vue/dist/Components/NcButton.js' |
|
|
|
|
|
import NcTextField from '@nextcloud/vue/dist/Components/NcTextField.js' |
|
|
|
|
|
|
|
|
import Check from 'vue-material-design-icons/Check.vue' |
|
|
import Check from 'vue-material-design-icons/Check.vue' |
|
|
import ContentCopy from 'vue-material-design-icons/ContentCopy.vue' |
|
|
import ContentCopy from 'vue-material-design-icons/ContentCopy.vue' |
|
|
@ -98,6 +101,7 @@ export default { |
|
|
ContentCopy, |
|
|
ContentCopy, |
|
|
NcButton, |
|
|
NcButton, |
|
|
QR, |
|
|
QR, |
|
|
|
|
|
NcTextField, |
|
|
}, |
|
|
}, |
|
|
props: { |
|
|
props: { |
|
|
add: { |
|
|
add: { |
|
|
@ -205,9 +209,9 @@ export default { |
|
|
width: 100px; |
|
|
width: 100px; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.row input { |
|
|
|
|
|
|
|
|
.app-name-text-field { |
|
|
height: 44px !important; |
|
|
height: 44px !important; |
|
|
padding: 7px 12px; |
|
|
|
|
|
|
|
|
padding-left: 12px; |
|
|
margin-right: 12px; |
|
|
margin-right: 12px; |
|
|
width: 200px; |
|
|
width: 200px; |
|
|
} |
|
|
} |
|
|
|