feat: job creation
This commit is contained in:
@@ -73,7 +73,7 @@ export function getFileSize(file_size) {
|
||||
export function showToast(title, text, icon) {
|
||||
createToast({
|
||||
title: title,
|
||||
text: text,
|
||||
text: htmlToText(text),
|
||||
icon: icon,
|
||||
iconClasses:
|
||||
icon == 'check'
|
||||
@@ -84,6 +84,12 @@ export function showToast(title, text, icon) {
|
||||
})
|
||||
}
|
||||
|
||||
export function htmlToText(html) {
|
||||
const div = document.createElement('div')
|
||||
div.innerHTML = html
|
||||
return div.textContent || div.innerText || ''
|
||||
}
|
||||
|
||||
export function getEditorTools() {
|
||||
return {
|
||||
header: Header,
|
||||
|
||||
Reference in New Issue
Block a user