This commit is contained in:
@@ -5,6 +5,7 @@ import { GetWindowWithId, ClearWindow, Windows } from '@/services/Windows';
|
||||
import ArrowLeftIcon from '/icons/iconoir/regular/arrow-left.svg';
|
||||
import XMarkIcon from '/icons/iconoir/regular/xmark.svg';
|
||||
import ResizeHandleIcon from '/icons/ui/resize-handle.svg';
|
||||
import { AddSound } from '~/services/Sound';
|
||||
|
||||
const props = defineProps(['window', 'handleHeight', 'custom', 'color']);
|
||||
const id = props.window;
|
||||
@@ -25,7 +26,7 @@ let backFunction;
|
||||
|
||||
function setupHandle() {
|
||||
let win = GetWindowWithId(id);
|
||||
if(win.title) title.value = win.title;
|
||||
if(win.title) title.value = $t(win.title);
|
||||
if(win.close){
|
||||
close.value = true;
|
||||
closeAction = win.close;
|
||||
@@ -43,6 +44,8 @@ function setupHandle() {
|
||||
// Setup sounds
|
||||
let currentWindowId = "window-wrapper-" + id;
|
||||
let currentWindow = document.getElementById(currentWindowId);
|
||||
|
||||
AddSound(currentWindow);
|
||||
}
|
||||
|
||||
function CloseButton(){
|
||||
|
||||
Reference in New Issue
Block a user