@@ -468,6 +450,30 @@ webhookListResource.reload();
}
};
+const apiKeyButtonLabel = computed(() => {
+ return $team.pg?.user_info?.api_key
+ ? $t('Regenerate API Key')
+ : $t('Create New API Key');
+});
+
+const apiKeyDialogOptions = computed(() => ({
+ title: $t('API Access'),
+ size: 'xl',
+ actions: [
+ {
+ label: $team.pg.user_info.api_key
+ ? $t('Regenerate API Key')
+ : $t('Create New API Key'),
+ variant: 'solid',
+ disabled: createSecret.data,
+ loading: createSecret.loading,
+ onClick() {
+ createSecret.submit();
+ }
+ }
+ ]
+}));
+
onMounted(() => {
if (session.hasWebhookConfigurationAccess) {
webhookListResource.fetch();