mirror of
https://github.com/ComputerScienceHouse/proxstar.git
synced 2025-03-09 15:40:09 +00:00
make usage limit table nicer, change some disk-related text
This commit is contained in:
parent
2b155903fd
commit
e6fd8b1c0c
4 changed files with 21 additions and 7 deletions
|
|
@ -391,7 +391,7 @@ $("#create-vm").click(function(){
|
|||
const max_disk = $(this).data('max_disk')
|
||||
if (name && disk) {
|
||||
if (disk > max_disk) {
|
||||
swal("Uh oh...", `You do not have enough disk resources available! Please lower the VM disk size to ${max_disk} GB or lower.`, "error");
|
||||
swal("Uh oh...", `You do not have enough disk resources available! Please lower the VM disk size to ${max_disk}GB or lower.`, "error");
|
||||
} else {
|
||||
fetch(`/proxstar/hostname/${name}`, {
|
||||
credentials: 'same-origin',
|
||||
|
|
@ -599,7 +599,7 @@ $(".edit-limit").click(function(){
|
|||
disk.defaultValue = cur_disk;
|
||||
options.append(disk)
|
||||
swal({
|
||||
title: `Enter the new limits for ${user}:`,
|
||||
title: `Enter the new usage limits for ${user}:`,
|
||||
content: options,
|
||||
buttons: {
|
||||
cancel: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue