58789: More improvements to selecting metadata schemas

This commit is contained in:
Kristof De Langhe
2019-01-22 14:38:07 +01:00
parent 55f5857c9c
commit 8029f65d4f
3 changed files with 10 additions and 5 deletions

View File

@@ -29,7 +29,6 @@
</thead> </thead>
<tbody> <tbody>
<tr *ngFor="let schema of (metadataSchemas | async)?.payload?.page" <tr *ngFor="let schema of (metadataSchemas | async)?.payload?.page"
(click)="editSchema(schema)"
[ngClass]="{'table-primary' : isActive(schema) | async}"> [ngClass]="{'table-primary' : isActive(schema) | async}">
<td> <td>
<label> <label>
@@ -39,9 +38,9 @@
> >
</label> </label>
</td> </td>
<td><a [routerLink]="[schema.prefix]">{{schema.id}}</a></td> <td class="selectable-row" (click)="editSchema(schema)"><a [routerLink]="[schema.prefix]">{{schema.id}}</a></td>
<td><a [routerLink]="[schema.prefix]">{{schema.namespace}}</a></td> <td class="selectable-row" (click)="editSchema(schema)"><a [routerLink]="[schema.prefix]">{{schema.namespace}}</a></td>
<td><a [routerLink]="[schema.prefix]">{{schema.prefix}}</a></td> <td class="selectable-row" (click)="editSchema(schema)"><a [routerLink]="[schema.prefix]">{{schema.prefix}}</a></td>
</tr> </tr>
</tbody> </tbody>
</table> </table>

View File

@@ -0,0 +1,5 @@
@import '../../../../styles/variables.scss';
.selectable-row:hover {
cursor: pointer;
}

View File

@@ -13,7 +13,8 @@ import { NotificationsService } from '../../../shared/notifications/notification
@Component({ @Component({
selector: 'ds-metadata-registry', selector: 'ds-metadata-registry',
templateUrl: './metadata-registry.component.html' templateUrl: './metadata-registry.component.html',
styleUrls: ['./metadata-registry.component.scss']
}) })
export class MetadataRegistryComponent { export class MetadataRegistryComponent {