refactor(client): refactor dialog functions to improve type inference
This commit is contained in:
@@ -60,13 +60,9 @@ export default defineComponent({
|
||||
|
||||
methods: {
|
||||
async add() {
|
||||
const { canceled, result: type } = await os.dialog({
|
||||
type: null,
|
||||
const { canceled, result: type } = await os.select({
|
||||
title: this.$ts._pages.chooseBlock,
|
||||
select: {
|
||||
groupedItems: this.getPageBlockList()
|
||||
},
|
||||
showCancelButton: true
|
||||
groupedItems: this.getPageBlockList()
|
||||
});
|
||||
if (canceled) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user