Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
martenson committed Apr 26, 2023
1 parent b87b295 commit 004b1e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 2 additions & 3 deletions client/src/components/Page/PageDropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,14 @@ export default {
return !!this.page.shared;
},
},
created() {
},
created() {},
methods: {
onDelete() {
const id = this.page.id;
const name = this.page.title;
const confirmationMessage = this.l(`Are you sure you want to delete page '${name}'?`);
if (window.confirm(confirmationMessage)) {
deletePage(id)
deletePage(id)
.then((message) => {
this.$emit("onRemove", id);
this.$emit("onSuccess", message);
Expand Down
3 changes: 1 addition & 2 deletions client/src/components/Page/services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export async function deletePage(itemId: PageDeleteArgs["id"]) {
return data;
}


const _updateTags = fetcher.path("/api/tags").method("put").create();
type UpdateTagsArgs = FetchArgType<typeof _updateTags>;
export async function updateTags(
Expand All @@ -28,4 +27,4 @@ export async function updateTags(
item_tags: itemTags,
});
return data;
}
}

0 comments on commit 004b1e6

Please sign in to comment.