mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-22 14:45:20 +00:00
Changed blocked instances to not be linked from instance page (#2121)
Co-authored-by: Beehaw Dev <dev@beehaw.dev> Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
This commit is contained in:
parent
5e91a4d9af
commit
f9f8233d6f
|
@ -102,7 +102,9 @@ export class Instances extends Component<any, InstancesState> {
|
||||||
active: isSelected,
|
active: isSelected,
|
||||||
})}
|
})}
|
||||||
>
|
>
|
||||||
{this.itemList(instances[status])}
|
{status === "blocked"
|
||||||
|
? this.itemList(instances[status], false)
|
||||||
|
: this.itemList(instances[status])}
|
||||||
</div>
|
</div>
|
||||||
),
|
),
|
||||||
}))}
|
}))}
|
||||||
|
@ -128,7 +130,7 @@ export class Instances extends Component<any, InstancesState> {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
itemList(items: Instance[]) {
|
itemList(items: Instance[], link = true) {
|
||||||
return items.length > 0 ? (
|
return items.length > 0 ? (
|
||||||
<div className="table-responsive">
|
<div className="table-responsive">
|
||||||
<table id="instances_table" className="table table-sm table-hover">
|
<table id="instances_table" className="table table-sm table-hover">
|
||||||
|
@ -143,9 +145,13 @@ export class Instances extends Component<any, InstancesState> {
|
||||||
{items.map(i => (
|
{items.map(i => (
|
||||||
<tr key={i.domain}>
|
<tr key={i.domain}>
|
||||||
<td>
|
<td>
|
||||||
<a href={`https://${i.domain}`} rel={relTags}>
|
{link ? (
|
||||||
{i.domain}
|
<a href={`https://${i.domain}`} rel={relTags}>
|
||||||
</a>
|
{i.domain}{" "}
|
||||||
|
</a>
|
||||||
|
) : (
|
||||||
|
<span>{i.domain}</span>
|
||||||
|
)}
|
||||||
</td>
|
</td>
|
||||||
<td>{i.software}</td>
|
<td>{i.software}</td>
|
||||||
<td>{i.version}</td>
|
<td>{i.version}</td>
|
||||||
|
|
Loading…
Reference in a new issue