Transferred and translated the frontend code from L10 to L12
linter / quality (push) Waiting to run
tests / ci (push) Waiting to run
linter / quality (push) Waiting to run
tests / ci (push) Waiting to run
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import { ref } from 'vue';
|
||||
|
||||
export const toastMessage = ref(null);
|
||||
|
||||
/**
|
||||
* @param {'success' | 'info' | 'danger' | 'warning'} type
|
||||
* @param {string} message
|
||||
*/
|
||||
export function showToast(type, message) {
|
||||
toastMessage.value = {
|
||||
type: String(type),
|
||||
message: String(message),
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user