Browse Source

Update add_ip.php (#3296)

Logic invertion for shared check box

Co-authored-by: root <root@test.hestiacp.com>
asmcc 3 years ago
parent
commit
424fd624d7
1 changed files with 2 additions and 2 deletions
  1. 2 2
      web/templates/pages/add_ip.php

+ 2 - 2
web/templates/pages/add_ip.php

@@ -19,7 +19,7 @@
 
 	<form
 		x-data="{
-			showUserTable: <?= empty($v_dedicated) ? "false" : "true" ?>
+			showUserTable: <?= empty($v_dedicated) ? "true" : "false" ?>
 		}"
 		id="vstobjects"
 		name="v_add_ip"
@@ -57,7 +57,7 @@
 					<?= _("Shared") ?>
 				</label>
 			</div>
-			<div x-cloak x-show="showUserTable" id="usrtable">
+			<div x-cloak x-show="!showUserTable" id="usrtable">
 				<div class="u-mb10">
 					<label for="v_owner" class="form-label"><?= _("Assigned user") ?></label>
 					<select class="form-select" name="v_owner" id="v_owner">