Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
dashboard
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AURA
dashboard
Commits
6c63b811
Commit
6c63b811
authored
1 year ago
by
Konrad Mohrfeldt
Browse files
Options
Downloads
Patches
Plain Diff
refactor: rename function to align with functionality
parent
bb87a09b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/shows/AShowDeletionFlow.vue
+4
-4
4 additions, 4 deletions
src/components/shows/AShowDeletionFlow.vue
with
4 additions
and
4 deletions
src/components/shows/AShowDeletionFlow.vue
+
4
−
4
View file @
6c63b811
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
</div>
</div>
</FormGroup>
</FormGroup>
<ConfirmDe
activa
tion
v-slot=
"
{ resolve }">
<ConfirmDe
le
tion
v-slot=
"
{ resolve }">
<AConfirmDialog
<AConfirmDialog
:title=
"t('show.editor.deletion.label')"
:title=
"t('show.editor.deletion.label')"
:confirm-label=
"t('show.editor.deletion.confirm.confirmLabel',
{ show: sanitizedShowName })"
:confirm-label=
"t('show.editor.deletion.confirm.confirmLabel',
{ show: sanitizedShowName })"
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
sanitize-preset="inline-noninteractive"
sanitize-preset="inline-noninteractive"
/>
/>
</AConfirmDialog>
</AConfirmDialog>
</ConfirmDe
activa
tion>
</ConfirmDe
le
tion>
</
template
>
</
template
>
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
{
createTemplatePromise
}
from
'
@vueuse/core
'
import
{
createTemplatePromise
}
from
'
@vueuse/core
'
...
@@ -54,7 +54,7 @@ const { t } = useI18n()
...
@@ -54,7 +54,7 @@ const { t } = useI18n()
const
router
=
useRouter
()
const
router
=
useRouter
()
const
showStore
=
useShowStore
()
const
showStore
=
useShowStore
()
const
ConfirmDe
activa
tion
=
createTemplatePromise
<
boolean
>
()
const
ConfirmDe
le
tion
=
createTemplatePromise
<
boolean
>
()
const
sanitizedShowName
=
computed
(()
=>
sanitizeHTML
(
props
.
show
.
name
))
const
sanitizedShowName
=
computed
(()
=>
sanitizeHTML
(
props
.
show
.
name
))
const
{
const
{
...
@@ -64,7 +64,7 @@ const {
...
@@ -64,7 +64,7 @@ const {
}
=
useAsyncFunction
(()
=>
showStore
.
remove
(
props
.
show
.
id
))
}
=
useAsyncFunction
(()
=>
showStore
.
remove
(
props
.
show
.
id
))
async
function
confirmDeleteShow
()
{
async
function
confirmDeleteShow
()
{
if
(
await
ConfirmDe
activa
tion
.
start
())
{
if
(
await
ConfirmDe
le
tion
.
start
())
{
try
{
try
{
await
deleteShow
()
await
deleteShow
()
await
router
.
push
({
name
:
'
shows
'
})
await
router
.
push
({
name
:
'
shows
'
})
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment