Skip to content

Commit

Permalink
Add missing subscription check
Browse files Browse the repository at this point in the history
  • Loading branch information
karlomikus committed Dec 11, 2024
1 parent 579dc60 commit f2c868c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/Settings/APIList.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<PageHeader>
{{ $t('api.tokens') }}
<template #actions>
<template v-if="appState.isSubscribed()" #actions>
<SaltRimDialog v-model="showDialog">
<template #trigger>
<button type="button" class="button button--dark" @click.prevent="showDialog = true">{{ $t('api.add') }}</button>
Expand Down Expand Up @@ -65,6 +65,7 @@ import DateFormatter from '../DateFormatter.vue'
import APIForm from './APIForm.vue'
import SubscriptionCheck from '../SubscriptionCheck.vue'
import { useTitle } from '@/composables/title'
import AppState from './../../AppState.js'
export default {
components: {
Expand All @@ -78,6 +79,7 @@ export default {
},
data() {
return {
appState: new AppState(),
isLoading: false,
showDialog: false,
tokens: [],
Expand Down

0 comments on commit f2c868c

Please sign in to comment.