Skip to content

Commit 96ab7a7

Browse files
committed
Fix: index.d.ts for snakbars && confirm dialog main button with same level color that dialog
1 parent b16b4ec commit 96ab7a7

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

cypress/test-server/src/components/HelloWorld.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export default defineComponent({
126126
})
127127
},
128128
errorNotification(){
129-
this.$notify.error("Hello error!\nLorem ipsum dolor sit amet, consectetur!", {timeout: 3000, location: 'bottom right'})
129+
this.$notify.error("Hello error! Lorem ipsum dolor sit amet, consectetur!", {timeout: 3000, location: 'bottom right'})
130130
},
131131
createNotificationWithHTML(){
132132
this.$notify.create({

src/Dialog.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export function confirmDialog(options: ConfirmDialogOptions) {
112112
{
113113
key: true,
114114
title: options.confirmationText ?? 'Confirm',
115-
color: 'warning',
115+
color: options.level ?? 'primary',
116116
...options.confirmationButtonOptions,
117117
},
118118
],

src/index.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,10 @@ declare module '@vue/runtime-core' {
111111

112112
$notify: {
113113
create: (options: CreateNotifyOptions) => Promise<string>;
114-
warning: (text: string, title?: string, notifyOptions?: any) => Promise<string>;
115-
error: (text: string, title?: string, notifyOptions?: any) => Promise<string>;
116-
info: (text: string, title?: string, notifyOptions?: any) => Promise<string>;
117-
success: (text: string, title?: string, notifyOptions?: any) => Promise<string>;
114+
warning: (text: string, notifyOptions?: any) => Promise<string>;
115+
error: (text: string, notifyOptions?: any) => Promise<string>;
116+
info: (text: string, notifyOptions?: any) => Promise<string>;
117+
success: (text: string, notifyOptions?: any) => Promise<string>;
118118
};
119119

120120
$bottomSheet: {

0 commit comments

Comments
 (0)