Skip to content

Commit

Permalink
fix app id
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Veyssier <[email protected]>
  • Loading branch information
julien-nc committed Nov 15, 2023
1 parent 21aedb5 commit 9fd4cc3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/assistant.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export async function openAssistantForm({ appId, identifier = '', taskType = nul
export async function runTask(appId, identifier, taskType, input) {
const { default: axios } = await import(/* webpackChunkName: "axios-lazy" */'@nextcloud/axios')
const { generateUrl } = await import(/* webpackChunkName: "router-gen-lazy" */'@nextcloud/router')
const url = generateUrl('/apps/textprocessing_assistant/run')
const url = generateUrl('/apps/assistant/run')
const params = {
input,
type: taskType,
Expand Down
10 changes: 5 additions & 5 deletions src/components/AssistantForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
:type="submitButtonType"
class="submit-button"
:disabled="!canSubmit"
:aria-label="t('textprocessing_assistant', 'Run an assistant task')"
:title="t('textprocessing_assistant', 'Run')"
:aria-label="t('assistant', 'Run an assistant task')"
:title="t('assistant', 'Run')"
@click="onSyncSubmit">
{{ syncSubmitButtonLabel }}
<template #icon>
Expand All @@ -53,8 +53,8 @@
:type="submitButtonType"
class="submit-button"
:disabled="!canSubmit"
:aria-label="t('textprocessing_assistant', 'Schedule an assistant task')"
:title="t('textprocessing_assistant', 'Schedule')"
:aria-label="t('assistant', 'Schedule an assistant task')"
:title="t('assistant', 'Schedule')"
@click="onSubmit">
{{ submitButtonLabel }}
<template #icon>
Expand Down Expand Up @@ -163,7 +163,7 @@ export default {
: this.selectedTaskType.name
},
syncSubmitButtonLabel() {
return this.myOutput.trim() ? t('textprocessing_assistant', 'Try again') : this.selectedTaskType.name
return this.myOutput.trim() ? t('assistant', 'Try again') : this.selectedTaskType.name
},
showCopy() {
return !!this.myOutput.trim()
Expand Down

0 comments on commit 9fd4cc3

Please sign in to comment.