Browse Source

Merge pull request #3577 from asheerrizvi/feat-3562

feat: added a form for creating tokens
pull/3589/head
navi 2 years ago committed by GitHub
parent
commit
6a20a8c9e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 20
      packages/nc-gui/components/tabs/auth/ApiTokenManagement.vue

20
packages/nc-gui/components/tabs/auth/ApiTokenManagement.vue

@ -106,17 +106,29 @@ onMounted(() => {
</template>
</a-button>
<!-- Generate Token -->
<div class="flex flex-row justify-center w-full -mt-1">
<div class="flex flex-row justify-center w-full -mt-1 mb-3">
<a-typography-title :level="5">{{ $t('title.generateToken') }}</a-typography-title>
</div>
<!-- Description -->
<div class="flex flex-col mt-3 justify-center space-y-6">
<a-form
ref="form"
:model="selectedTokenData"
name="basic"
layout="vertical"
class="flex flex-col justify-center space-y-6"
no-style
autocomplete="off"
@finish="generateToken"
>
<a-input v-model:value="selectedTokenData.description" :placeholder="$t('labels.description')" />
<!-- Generate -->
<div class="flex flex-row justify-center">
<a-button type="primary" @click="generateToken"> {{ $t('general.generate') }} </a-button>
<a-button type="primary" html-type="submit">
{{ $t('general.generate') }}
</a-button>
</div>
</div>
</a-form>
</div>
</a-modal>
<a-modal v-model:visible="showDeleteTokenModal" :closable="false" width="28rem" centered :footer="null">

Loading…
Cancel
Save