mirror of
https://github.com/hubHarmony/servii-frontend.git
synced 2024-11-18 05:40:31 +00:00
+ affichae ip du serveur
This commit is contained in:
parent
915307a245
commit
a3860dfcfd
@ -1,7 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import styles from './serverCard.module.scss';
|
import styles from './serverCard.module.scss';
|
||||||
|
|
||||||
const ServerCard = ({ color, status, version, link, name, onRunClick, onStopClick, onDeleteClick }) => {
|
const ServerCard = ({ color, status, version, link, name, onRunClick, onStopClick, onDeleteClick ,subdomain }) => {
|
||||||
|
|
||||||
const getStatusColor = () => {
|
const getStatusColor = () => {
|
||||||
switch (status) {
|
switch (status) {
|
||||||
@ -60,6 +60,7 @@ const ServerCard = ({ color, status, version, link, name, onRunClick, onStopClic
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className={styles.version}>Version: {version}</div>
|
<div className={styles.version}>Version: {version}</div>
|
||||||
|
<div className={styles.version}>Adresse ip: {subdomain + ".servii.fr"}</div >
|
||||||
<button className={styles.deleteButton} onClick={handleDelete}>Supprimer</button>
|
<button className={styles.deleteButton} onClick={handleDelete}>Supprimer</button>
|
||||||
</a>
|
</a>
|
||||||
);
|
);
|
||||||
|
@ -86,6 +86,7 @@ const DashboardPage = ({ user }) => {
|
|||||||
onRunClick={() => handleRunServer(server.name)}
|
onRunClick={() => handleRunServer(server.name)}
|
||||||
onStopClick={() => handleStopServer(server.name)}
|
onStopClick={() => handleStopServer(server.name)}
|
||||||
onDeleteClick={() => handleDeleteServer(server.name)}
|
onDeleteClick={() => handleDeleteServer(server.name)}
|
||||||
|
subdomain={subdomain}
|
||||||
/>
|
/>
|
||||||
))
|
))
|
||||||
)}
|
)}
|
||||||
|
Loading…
Reference in New Issue
Block a user