mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-12-27 05:11:26 +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
1 changed files with 11 additions and 5 deletions
|
@ -102,7 +102,9 @@ export class Instances extends Component<any, InstancesState> {
|
|||
active: isSelected,
|
||||
})}
|
||||
>
|
||||
{this.itemList(instances[status])}
|
||||
{status === "blocked"
|
||||
? this.itemList(instances[status], false)
|
||||
: this.itemList(instances[status])}
|
||||
</div>
|
||||
),
|
||||
}))}
|
||||
|
@ -128,7 +130,7 @@ export class Instances extends Component<any, InstancesState> {
|
|||
);
|
||||
}
|
||||
|
||||
itemList(items: Instance[]) {
|
||||
itemList(items: Instance[], link = true) {
|
||||
return items.length > 0 ? (
|
||||
<div className="table-responsive">
|
||||
<table id="instances_table" className="table table-sm table-hover">
|
||||
|
@ -143,9 +145,13 @@ export class Instances extends Component<any, InstancesState> {
|
|||
{items.map(i => (
|
||||
<tr key={i.domain}>
|
||||
<td>
|
||||
<a href={`https://${i.domain}`} rel={relTags}>
|
||||
{i.domain}
|
||||
</a>
|
||||
{link ? (
|
||||
<a href={`https://${i.domain}`} rel={relTags}>
|
||||
{i.domain}{" "}
|
||||
</a>
|
||||
) : (
|
||||
<span>{i.domain}</span>
|
||||
)}
|
||||
</td>
|
||||
<td>{i.software}</td>
|
||||
<td>{i.version}</td>
|
||||
|
|
Loading…
Reference in a new issue