mirror of
https://github.com/HeyPuter/puter.git
synced 2026-08-22 05:57:57 +00:00
We require value. Using label will be very messy with translation
This commit is contained in:
+1
-1
@@ -57,7 +57,7 @@ function UIAlert(options){
|
||||
for(let y=0; y<options.buttons.length; y++){
|
||||
h += `<button class="button button-block button-${html_encode(options.buttons[y].type)} alert-resp-button"
|
||||
data-label="${html_encode(options.buttons[y].label)}"
|
||||
data-value="${html_encode(options.buttons[y].value ?? options.buttons[y].label)}"
|
||||
data-value="${html_encode(options.buttons[y].value)}"
|
||||
${options.buttons[y].type === 'primary' ? 'autofocus' : ''}
|
||||
>${html_encode(options.buttons[y].label)}</button>`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user